File tree 2 files changed +1
-2
lines changed
compiler/src/dotty/tools/dotc/core
2 files changed +1
-2
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,7 +513,7 @@ 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
516
+ val poName = if (isType) nme.PACKAGE .moduleClassName else nme.PACKAGE
517
517
(name.toTermName == poName) && (owner is Package ) && (this is Module )
518
518
}
519
519
You can’t perform that action at this time.
0 commit comments