File tree Expand file tree Collapse file tree 1 file changed +2
-6
lines changed
compiler/src/dotty/tools/dotc/typer Expand file tree Collapse file tree 1 file changed +2
-6
lines changed Original file line number Diff line number Diff line change @@ -270,13 +270,9 @@ class Typer extends Namer with TypeAssigner with Applications with Implicits wit
270
270
if (isSelfDenot(defDenot)) curOwner.enclosingClass.thisType
271
271
else {
272
272
val effectiveOwner =
273
- if (curOwner.isTerm && defDenot.symbol.isType )
273
+ if (curOwner.isTerm && defDenot.symbol.maybeOwner.isClass )
274
274
// Don't mix NoPrefix and thisType prefixes, since type comparer
275
- // would not detect types to be compatible. Note: If we replace the
276
- // 2nd condition by `defDenot.symbol.maybeOwner.isType` we get lots
277
- // of failures in the `tastyBootstrap` test. Trying to compile these
278
- // files in isolation works though.
279
- // TODO: Investigate why that happens.
275
+ // would not detect types to be compatible.
280
276
defDenot.symbol.owner
281
277
else
282
278
curOwner
You can’t perform that action at this time.
0 commit comments