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 e4bb383 commit 5beb624Copy full SHA for 5beb624
compiler/src/dotty/tools/dotc/typer/Typer.scala
@@ -3574,7 +3574,9 @@ class Typer extends Namer
3574
case Ident(name) => untpd.Ident(name.toTypeName).withSpan(tree.span)
3575
case Select(qual, name) => untpd.Select(qual, name.toTypeName).withSpan(tree.span)
3576
val bundle = untpd.Apply(untpd.Select(untpd.New(ref), nme.CONSTRUCTOR), untpd.Literal(Constant(null))).withSpan(call.span)
3577
- typedExpr(bundle, defn.AnyType)
+ val bundle1 = typedExpr(bundle, defn.AnyType)
3578
+ val bundleVal = SyntheticValDef(NameKinds.UniqueName.fresh("bundle".toTermName), bundle1)
3579
+ tpd.Block(List(bundleVal), tpd.ref(bundleVal.symbol))
3580
}
3581
3582
if ctx.phase.isTyper then
0 commit comments