Skip to content

Commit 9ce8c79

Browse files
committed
Dotty typer deviation triggered in Unpickler
1 parent 748b8f4 commit 9ce8c79

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/dotty/tools/dotc/core/pickling/UnPickler.scala

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -845,7 +845,8 @@ class UnPickler(bytes: Array[Byte], classRoot: ClassDenotation, moduleClassRoot:
845845
.select(TermRef.withSig(atp.normalizedPrefix, constr.termSymbol.asTerm))
846846
.appliedToTypes(targs)
847847
val apply = untpd.Apply(fun, args)
848-
new typer.ApplyToTyped(apply, fun, constr, args, atp).result // needed to handle varargs
848+
new typer.ApplyToTyped(apply, fun, constr, args, atp).result.asInstanceOf[tpd.Tree] // needed to handle varargs
849+
// Dotty deviation, for scalac the last cast wouldn't be required
849850
}
850851

851852
/** Read an annotation and as a side effect store it into

0 commit comments

Comments
 (0)