Skip to content

Commit 7c8667e

Browse files
committed
Dereference stable types recursively
1 parent 823d710 commit 7c8667e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

compiler/src/dotty/tools/dotc/core/Types.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4242,7 +4242,7 @@ object Types {
42424242
// final val one = 1
42434243
// type Two = one.type + one.type
42444244
// ```
4245-
case tp: TermRef => tp.underlying
4245+
case tp: TypeProxy if tp.underlying.isStable => tp.underlying.fixForEvaluation
42464246
case tp => tp
42474247
}
42484248

0 commit comments

Comments
 (0)