Skip to content

Commit fd66719

Browse files
oderskyWojciechMazur
authored andcommitted
Fix handling of AppliedType aliases in outerPrefix
Fixes #10184 The overlooked case was an AppliedType where we don't dealias correctly (i.e. at phase at most erasure). [Cherry-picked 6841c75]
1 parent af95a38 commit fd66719

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

compiler/src/dotty/tools/dotc/transform/ExplicitOuter.scala

+1-1
Original file line numberDiff line numberDiff line change
@@ -360,7 +360,7 @@ object ExplicitOuter {
360360
// macro generated code to be able to pinpoint the root problem.
361361
}
362362
case tpe: TypeProxy =>
363-
outerPrefix(tpe.underlying)
363+
atPhaseNoLater(erasurePhase)(outerPrefix(tpe.superType))
364364
}
365365

366366
/** It's possible (i1755.scala gives an example) that the type

0 commit comments

Comments
 (0)