Skip to content

Commit 40dbcc2

Browse files
EugeneFlesselleWojciechMazur
authored andcommitted
stripLazyRef for underlyingNormalizable
[Cherry-picked 4fbba66]
1 parent 74451b7 commit 40dbcc2

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

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

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -492,7 +492,7 @@ object Types extends TypeUtils {
492492
/** Does this application expand to a match type? */
493493
def isMatchAlias(using Context): Boolean = underlyingNormalizable.isMatch
494494

495-
def underlyingNormalizable(using Context): Type = stripped match
495+
def underlyingNormalizable(using Context): Type = stripped.stripLazyRef match
496496
case tp: MatchType => tp
497497
case tp: AppliedType => tp.underlyingNormalizable
498498
case _ => NoType
@@ -3258,8 +3258,6 @@ object Types extends TypeUtils {
32583258
private var myRef: Type | Null = null
32593259
private var computed = false
32603260

3261-
override def tryNormalize(using Context): Type = ref.tryNormalize
3262-
32633261
def ref(using Context): Type =
32643262
if computed then
32653263
if myRef == null then

0 commit comments

Comments
 (0)