We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6fa4767 commit 6305d15Copy full SHA for 6305d15
compiler/src/dotty/tools/dotc/core/TypeEval.scala
@@ -18,7 +18,9 @@ object TypeEval:
18
// final val one = 1
19
// type Two = one.type + one.type
20
// ```
21
- case tp: TypeProxy if tp.underlying.isStable => tp.underlying.fixForEvaluation
+ case tp: TypeProxy =>
22
+ val tp1 = tp.superType
23
+ if tp1.isStable then tp1.fixForEvaluation else tp
24
case tp => tp
25
26
def constValue(tp: Type): Option[Any] = tp.fixForEvaluation match
0 commit comments