Skip to content

Commit 4fbba66

Browse files
stripLazyRef for underlyingNormalizable
1 parent a6cadec commit 4fbba66

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

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

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

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

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

0 commit comments

Comments
 (0)