Skip to content

Commit 45fbf3e

Browse files
committed
Fix unpickling of match type aliases
1 parent 56759c8 commit 45fbf3e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

compiler/src/dotty/tools/dotc/core/tasty/TreeUnpickler.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -800,7 +800,7 @@ class TreeUnpickler(reader: TastyReader,
800800
}
801801
sym.info = rhs.tpe match {
802802
case _: TypeBounds | _: ClassInfo => checkNonCyclic(sym, rhs.tpe, reportErrors = false)
803-
case _ => TypeAlias(rhs.tpe)
803+
case _ => rhs.tpe.toBounds
804804
}
805805
sym.resetFlag(Provisional)
806806
TypeDef(rhs)

0 commit comments

Comments
 (0)