File tree 1 file changed +1
-5
lines changed
compiler/src/dotty/tools/dotc/core
1 file changed +1
-5
lines changed Original file line number Diff line number Diff line change @@ -4641,10 +4641,6 @@ object Types extends TypeUtils {
4641
4641
case nil => x
4642
4642
foldArgs(op(x, tycon), args)
4643
4643
4644
- /** Exists if the tycon is a TypeRef of an alias with an underlying match type.
4645
- * Anything else should have already been reduced in `appliedTo` by the TypeAssigner.
4646
- * May reduce several HKTypeLambda applications before the underlying MatchType is reached.
4647
- */
4648
4644
override def underlyingNormalizable (using Context ): Type =
4649
4645
if ctx.period != validUnderlyingNormalizable then
4650
4646
validUnderlyingNormalizable = if tycon.isProvisional then Nowhere else ctx.period
@@ -4654,7 +4650,7 @@ object Types extends TypeUtils {
4654
4650
cachedUnderlyingNormalizable
4655
4651
4656
4652
override def tryNormalize (using Context ): Type =
4657
- if MatchTypeTrace .isRecording && isMatchAlias then
4653
+ if isMatchAlias && MatchTypeTrace .isRecording then
4658
4654
MatchTypeTrace .recurseWith(this )(superType.tryNormalize)
4659
4655
else super .tryNormalize
4660
4656
You can’t perform that action at this time.
0 commit comments