File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed
compiler/src/dotty/tools/dotc/quoted Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -30,7 +30,7 @@ object QuotePatterns:
3030 def traverse (tree : Tree )(using Context ): Unit = tree match {
3131 case tree : SplicePattern =>
3232 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)
3434 case tdef : TypeDef if tdef.symbol.isClass =>
3535 val kind = if tdef.symbol.is(Module ) then " objects" else " classes"
3636 report.error(em " Implementation restriction: cannot match $kind" , tree.srcPos)
Original file line number Diff line number Diff line change 11-- Error: tests/neg-macros/i19941.scala:7:14 ---------------------------------------------------------------------------
227 | case '{ ${hd *: tl} : *:[Int, EmptyTuple] } => '{ ??? } // error
33 | ^^^^^^^^
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