File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
compiler/src/dotty/tools/dotc/transform Expand file tree Collapse file tree 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 {
304304 outer.checkType(pos).foldOver(acc, tp)
305305 }
306306 else {
307- if (tp.isTerm) ctx.error( i " splice outside quotes " , pos)
307+ if (tp.isTerm) spliceOutsideQuotes( pos)
308308 tp
309309 }
310310 case tp : NamedType =>
@@ -435,7 +435,7 @@ class ReifyQuotes extends MacroTransformWithImplicits {
435435 if (ctx.reporter.hasErrors) splice else transform(evaluatedSplice)
436436 }
437437 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)
439439 splice
440440 }
441441 else if (Splicer .canBeSpliced(splice.qualifier)) { // level 0 inside a transparent definition
You can’t perform that action at this time.
0 commit comments