Skip to content

Commit 2bcf0db

Browse files
nicolasstuckijchyb
andauthored
Apply suggestions from code review
Co-authored-by: Jan Chyb <[email protected]>
1 parent 676b250 commit 2bcf0db

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

compiler/src/dotty/tools/dotc/quoted/QuotePatterns.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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)

tests/neg-macros/i19941.check

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
-- Error: tests/neg-macros/i19941.scala:7:14 ---------------------------------------------------------------------------
22
7 | case '{ ${hd *: tl} : *:[Int, EmptyTuple] } => '{ ??? } // error
33
| ^^^^^^^^
4-
| Spice pattern must match an Expr[...]
4+
| Splice pattern must match an Expr[...]

0 commit comments

Comments
 (0)