Skip to content

Commit ea96161

Browse files
EugeneFlesselleprolativ
authored andcommitted
stripLazyRef for underlyingNormalizable
[Cherry-picked 4fbba66]
1 parent 8621dc4 commit ea96161

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
@@ -461,7 +461,7 @@ object Types extends TypeUtils {
461461
/** Does this application expand to a match type? */
462462
def isMatchAlias(using Context): Boolean = underlyingNormalizable.isMatch
463463

464-
def underlyingNormalizable(using Context): Type = stripped match
464+
def underlyingNormalizable(using Context): Type = stripped.stripLazyRef match
465465
case tp: MatchType => tp
466466
case tp: AppliedType => tp.underlyingNormalizable
467467
case _ => NoType
@@ -3111,8 +3111,6 @@ object Types extends TypeUtils {
31113111
private var myRef: Type | Null = null
31123112
private var computed = false
31133113

3114-
override def tryNormalize(using Context): Type = ref.tryNormalize
3115-
31163114
def ref(using Context): Type =
31173115
if computed then
31183116
if myRef == null then

0 commit comments

Comments
 (0)