File tree 2 files changed +2
-2
lines changed
compiler/src/dotty/tools/dotc/quoted
2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -30,7 +30,7 @@ object QuotePatterns:
30
30
def traverse (tree : Tree )(using Context ): Unit = tree match {
31
31
case tree : SplicePattern =>
32
32
if ! tree.body.typeOpt.derivesFrom(defn.QuotedExprClass ) then
33
- report.error(i " Spice pattern must match an Expr[...]" , tree.body.srcPos)
33
+ report.error(i " Splice pattern must match an Expr[...]" , tree.body.srcPos)
34
34
case tdef : TypeDef if tdef.symbol.isClass =>
35
35
val kind = if tdef.symbol.is(Module ) then " objects" else " classes"
36
36
report.error(em " Implementation restriction: cannot match $kind" , tree.srcPos)
Original file line number Diff line number Diff line change 1
1
-- Error: tests/neg-macros/i19941.scala:7:14 ---------------------------------------------------------------------------
2
2
7 | case '{ ${hd *: tl} : *:[Int, EmptyTuple] } => '{ ??? } // error
3
3
| ^^^^^^^^
4
- | Spice pattern must match an Expr[...]
4
+ | Splice pattern must match an Expr[...]
You can’t perform that action at this time.
0 commit comments