File tree Expand file tree Collapse file tree 2 files changed +3
-4
lines changed Expand file tree Collapse file tree 2 files changed +3
-4
lines changed Original file line number Diff line number Diff line change @@ -428,7 +428,7 @@ object Symbols {
428
428
final def entered (implicit ctx : Context ): this .type = {
429
429
assert(this .owner.isClass, s " symbol ( $this) entered the scope of non-class owner ${this .owner}" ) // !!! DEBUG
430
430
this .owner.asClass.enter(this )
431
- if (this is Module ) this .owner.asClass.enter(this .moduleClass)
431
+ if (this .is( Module , butNot = Package ) ) this .owner.asClass.enter(this .moduleClass)
432
432
this
433
433
}
434
434
Original file line number Diff line number Diff line change @@ -126,9 +126,8 @@ class Typer extends Namer with TypeAssigner with Applications with Implicits wit
126
126
* case x :: xs in class List would return the :: method).
127
127
*/
128
128
def qualifies (denot : Denotation ): Boolean =
129
- reallyExists(denot) &&
130
- ! (name.isTypeName && denot.symbol.is(Package )) &&
131
- ! (pt.isInstanceOf [UnapplySelectionProto ] &&
129
+ reallyExists(denot) && ! (
130
+ pt.isInstanceOf [UnapplySelectionProto ] &&
132
131
(denot.symbol is (Method , butNot = Accessor )))
133
132
134
133
/** Find the denotation of enclosing `name` in given context `ctx`.
You can’t perform that action at this time.
0 commit comments