We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a612da8 commit 042cee2Copy full SHA for 042cee2
src/dotty/tools/dotc/transform/Erasure.scala
@@ -374,6 +374,10 @@ object Erasure extends TypeTestsCasts{
374
}
375
376
377
+ override def typedSeqLiteral(tree: untpd.SeqLiteral, pt: Type)(implicit ctx: Context) =
378
+ super.typedSeqLiteral(tree, tree.typeOpt)
379
+ // proto type of typed seq literal is original type; this makes elements be adapted to correct type.
380
+
381
override def typedValDef(vdef: untpd.ValDef, sym: Symbol)(implicit ctx: Context): ValDef =
382
super.typedValDef(untpd.cpy.ValDef(vdef)(
383
tpt = untpd.TypedSplice(TypeTree(sym.info).withPos(vdef.tpt.pos))), sym)
0 commit comments