Skip to content

Commit 370125e

Browse files
committed
Fix rebase breakage
1 parent 6bf58a5 commit 370125e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

compiler/src/dotty/tools/dotc/transform/ReifyQuotes.scala

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)