File tree 2 files changed +3
-2
lines changed
compiler/src/dotty/tools/dotc 2 files changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -425,6 +425,7 @@ object StdNames {
425
425
val assume_ : N = " assume"
426
426
val box : N = " box"
427
427
val build : N = " build"
428
+ val bundle : N = " bundle"
428
429
val bytes : N = " bytes"
429
430
val canEqual_ : N = " canEqual"
430
431
val cbnArg : N = " <cbn-arg>"
Original file line number Diff line number Diff line change @@ -3575,7 +3575,7 @@ class Typer extends Namer
3575
3575
case Select (qual, name) => untpd.Select (qual, name.toTypeName).withSpan(tree.span)
3576
3576
val bundle = untpd.Apply (untpd.Select (untpd.New (ref), nme.CONSTRUCTOR ), untpd.Literal (Constant (null ))).withSpan(call.span)
3577
3577
val bundle1 = typedExpr(bundle, defn.AnyType )
3578
- val bundleVal = SyntheticValDef (NameKinds .UniqueName .fresh(" bundle " .toTermName ), bundle1)
3578
+ val bundleVal = SyntheticValDef (NameKinds .UniqueName .fresh(nme.bundle ), bundle1).withSpan(call.span )
3579
3579
tpd.Block (List (bundleVal), splice(tpd.ref(bundleVal.symbol))).withSpan(call.span)
3580
3580
}
3581
3581
}
@@ -3590,7 +3590,7 @@ class Typer extends Namer
3590
3590
}
3591
3591
case untpd.TypeApply (untpd.Select (qual : untpd.RefTree , name), targs) =>
3592
3592
typedPrefix(qual) { qual =>
3593
- val call2 = untpd.TypeApply (untpd.Select (untpd.TypedSplice (qual), name), targs).withSpan(call.span)
3593
+ val call2 = untpd.TypeApply (untpd.Select (untpd.TypedSplice (qual), name), targs).withSpan(call.span)
3594
3594
typedTypeApply(call2, defn.AnyType )
3595
3595
}
3596
3596
case _ =>
You can’t perform that action at this time.
0 commit comments