Skip to content

Commit 6841c75

Browse files
committed
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).
1 parent 4c2305d commit 6841c75

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)