Skip to content

Commit 7ebf4e2

Browse files
oderskymichelou
authored andcommitted
Alternative fix: Make annotation reading lazier
Fixes scala#12109 without causing problems elsewhere.
1 parent 3d4c5b9 commit 7ebf4e2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

compiler/src/dotty/tools/dotc/core/unpickleScala2/Scala2Unpickler.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -792,7 +792,7 @@ class Scala2Unpickler(bytes: Array[Byte], classRoot: ClassDenotation, moduleClas
792792
OrType(args(0), args(1), soft = false)
793793
}
794794
else if (args.nonEmpty) tycon.safeAppliedTo(EtaExpandIfHK(sym.typeParams, args.map(translateTempPoly)))
795-
//else if (sym.typeParams.nonEmpty) tycon.EtaExpand(sym.typeParams)
795+
else if (sym.typeParams.nonEmpty) tycon.EtaExpand(sym.typeParams)
796796
else tycon
797797
case TYPEBOUNDStpe =>
798798
val lo = readTypeRef()

0 commit comments

Comments
 (0)