Skip to content

Commit 0a54504

Browse files
Update compiler/src/dotty/tools/dotc/typer/QuotesAndSplices.scala
Co-authored-by: Guillaume Martres <[email protected]>
1 parent ebf5af1 commit 0a54504

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

compiler/src/dotty/tools/dotc/typer/QuotesAndSplices.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -240,7 +240,7 @@ trait QuotesAndSplices {
240240
args match // TODO support these patterns. Possibly using scala.quoted.util.Var
241241
case SeqLiteral(args, _) =>
242242
for arg <- args; if arg.symbol.is(Mutable) do
243-
report.error("Implementation restriction: refercences to `var`s cannot be used in higher-horder pattern", arg.srcPos)
243+
report.error("Implementation restriction: references to `var`s cannot be used in higher-order pattern", arg.srcPos)
244244
try ref(defn.InternalQuotedMatcher_higherOrderHole.termRef).appliedToTypeTrees(targs).appliedTo(args).withSpan(tree.span)
245245
finally {
246246
val patType = pat.tpe.widen

0 commit comments

Comments
 (0)