File tree 1 file changed +2
-2
lines changed
compiler/src/dotty/tools/dotc/transform
1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -304,7 +304,7 @@ class ReifyQuotes extends MacroTransformWithImplicits {
304
304
outer.checkType(pos).foldOver(acc, tp)
305
305
}
306
306
else {
307
- if (tp.isTerm) ctx.error( i " splice outside quotes " , pos)
307
+ if (tp.isTerm) spliceOutsideQuotes( pos)
308
308
tp
309
309
}
310
310
case tp : NamedType =>
@@ -435,7 +435,7 @@ class ReifyQuotes extends MacroTransformWithImplicits {
435
435
if (ctx.reporter.hasErrors) splice else transform(evaluatedSplice)
436
436
}
437
437
else if (! ctx.owner.is(Transparent )) { // level 0 outside a transparent definition
438
- ctx.error( i " splice outside quotes or transparent method " , splice.pos)
438
+ spliceOutsideQuotes( splice.pos)
439
439
splice
440
440
}
441
441
else if (Splicer .canBeSpliced(splice.qualifier)) { // level 0 inside a transparent definition
You can’t perform that action at this time.
0 commit comments