File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed
src/dotty/tools/dotc/typer Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -126,9 +126,10 @@ 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
- pt.isInstanceOf [UnapplySelectionProto ] &&
131
- (denot.symbol is (Method , butNot = Accessor )))
129
+ reallyExists(denot) &&
130
+ ! (name.isTypeName && denot.symbol.is(Package )) &&
131
+ ! (pt.isInstanceOf [UnapplySelectionProto ] &&
132
+ (denot.symbol is (Method , butNot = Accessor )))
132
133
133
134
/** Find the denotation of enclosing `name` in given context `ctx`.
134
135
* @param previous A denotation that was found in a more deeply nested scope,
You can’t perform that action at this time.
0 commit comments