Skip to content

Commit 46a8d13

Browse files
committed
Only use EXPLICITtpt for TypeTree containing TermRefs
1 parent 9897592 commit 46a8d13

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

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

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -695,7 +695,9 @@ class TreePickler(pickler: TastyPickler) {
695695
writeNat(idx)
696696
pickleType(tree.tpe, richTypes = true)
697697
args.foreach { arg =>
698-
if arg.isType then writeByte(EXPLICITtpt)
698+
arg.tpe match
699+
case _: TermRef if arg.isType => writeByte(EXPLICITtpt)
700+
case _ =>
699701
pickleTree(arg)
700702
}
701703
}

0 commit comments

Comments
 (0)