Skip to content

Commit a0f2126

Browse files
Restore local def tryMatchAlias for JIT purposes
1 parent b521296 commit a0f2126

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4654,13 +4654,14 @@ object Types extends TypeUtils {
46544654
cachedUnderlyingMatch
46554655

46564656
override def tryNormalize(using Context): Type =
4657-
tryCompiletimeConstantFold.orElse:
4657+
def tryMatchAlias =
46584658
if isMatchAlias then trace(i"normalize $this", typr, show = true):
46594659
if MatchTypeTrace.isRecording then
46604660
MatchTypeTrace.recurseWith(this)(superType.tryNormalize)
46614661
else
46624662
underlyingMatchType.tryNormalize
46634663
else NoType
4664+
tryCompiletimeConstantFold.orElse(tryMatchAlias)
46644665

46654666
/** Is this an unreducible application to wildcard arguments?
46664667
* This is the case if tycon is higher-kinded. This means

0 commit comments

Comments
 (0)