Skip to content

Commit 26b852a

Browse files
authored
Merge pull request #2834 from dotty-staging/fix-cats
Fix #2803: Scala2Unpickler failure when using cats_2.11
2 parents 7b39007 + fdaf1c6 commit 26b852a

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

+1-1
Original file line numberDiff line numberDiff line change
@@ -745,7 +745,7 @@ class Scala2Unpickler(bytes: Array[Byte], classRoot: ClassDenotation, moduleClas
745745
else TypeRef(pre, sym.name.asTypeName)
746746
val args = until(end, readTypeRef)
747747
if (sym == defn.ByNameParamClass2x) ExprType(args.head)
748-
else if (args.nonEmpty) tycon.safeAppliedTo(EtaExpandIfHK(sym.typeParams, args))
748+
else if (args.nonEmpty) tycon.safeAppliedTo(EtaExpandIfHK(sym.typeParams, args.map(translateTempPoly)))
749749
else if (sym.typeParams.nonEmpty) tycon.EtaExpand(sym.typeParams)
750750
else tycon
751751
case TYPEBOUNDStpe =>

0 commit comments

Comments
 (0)