File tree Expand file tree Collapse file tree 4 files changed +9
-4
lines changed Expand file tree Collapse file tree 4 files changed +9
-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 @@ -127,8 +127,8 @@ class Typer extends Namer with TypeAssigner with Applications with Implicits wit
127
127
*/
128
128
def qualifies (denot : Denotation ): Boolean =
129
129
reallyExists(denot) && ! (
130
- pt.isInstanceOf [UnapplySelectionProto ] &&
131
- (denot.symbol is (Method , butNot = Accessor )))
130
+ pt.isInstanceOf [UnapplySelectionProto ] &&
131
+ (denot.symbol is (Method , butNot = Accessor )))
132
132
133
133
/** Find the denotation of enclosing `name` in given context `ctx`.
134
134
* @param previous A denotation that was found in a more deeply nested scope,
Original file line number Diff line number Diff line change 1
- trait T extends Array {
1
+ trait T extends Array { // error
2
2
def t1 (as : String * ): Array [String ] = { varargs1(as : _* ) } // error
3
3
def t2 (as : String * ): Array [String ] = { super .varargs1(as : _* ) } // error
4
4
}
Original file line number Diff line number Diff line change
1
+ trait Foo {
2
+ def test (x : test) : Int // error: not found test
3
+ def f (x : src) : Int // error
4
+ def g (x : src.project) : Int // error
5
+ }
You can’t perform that action at this time.
0 commit comments