File tree 2 files changed +4
-3
lines changed
compiler/src/dotty/tools/dotc/core
2 files changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -135,7 +135,6 @@ object StdNames {
135
135
val OPS_PACKAGE : N = " <special-ops>"
136
136
val OVERLOADED : N = " <overloaded>"
137
137
val PACKAGE : N = " package"
138
- val PACKAGE_CLS : N = " package$"
139
138
val ROOT : N = " <root>"
140
139
val SPECIALIZED_SUFFIX : N = " $sp"
141
140
val SUPER_PREFIX : N = " super$"
Original file line number Diff line number Diff line change @@ -513,8 +513,10 @@ object SymDenotations {
513
513
514
514
/** Is this symbol a package object or its module class? */
515
515
def isPackageObject (implicit ctx : Context ): Boolean = {
516
- val poName = if (isType) nme.PACKAGE_CLS else nme.PACKAGE
517
- (name.toTermName == poName) && (owner is Package ) && (this is Module )
516
+ val nameMatches =
517
+ if (isType) name == tpnme.PACKAGE .moduleClassName
518
+ else name == nme.PACKAGE
519
+ nameMatches && (owner is Package ) && (this is Module )
518
520
}
519
521
520
522
/** Is this symbol an abstract type? */
You can’t perform that action at this time.
0 commit comments