File tree 2 files changed +4
-2
lines changed
compiler/src/dotty/tools/dotc
2 files changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -143,7 +143,7 @@ object TypeOps:
143
143
defn.MatchCase (simplify(pat, theMap), body)
144
144
case tp : AppliedType =>
145
145
tp.tycon match
146
- case tycon : TypeRef if tycon.info. isInstanceOf [ MatchAlias ] =>
146
+ case tycon : TypeRef if tp.isMatchAlias =>
147
147
isFullyDefined(tp, ForceDegree .all)
148
148
case _ =>
149
149
val normed = tp.tryNormalize
Original file line number Diff line number Diff line change @@ -445,13 +445,15 @@ object Inlines:
445
445
evidence
446
446
}
447
447
448
- def unrollTupleTypes (tpe : Type ): Option [List [Type ]] = tpe.dealias.normalized match
448
+ def unrollTupleTypes (tpe : Type ): Option [List [Type ]] = tpe.dealias match
449
449
case AppliedType (tycon, args) if defn.isTupleClass(tycon.typeSymbol) =>
450
450
Some (args)
451
451
case AppliedType (tycon, head :: tail :: Nil ) if tycon.isRef(defn.PairClass ) =>
452
452
unrollTupleTypes(tail).map(head :: _)
453
453
case tpe : TermRef if tpe.symbol == defn.EmptyTupleModule =>
454
454
Some (Nil )
455
+ case tpe : AppliedType if tpe.isMatchAlias =>
456
+ unrollTupleTypes(tpe.tryNormalize)
455
457
case _ =>
456
458
None
457
459
You can’t perform that action at this time.
0 commit comments