We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ebf5af1 commit 0a54504Copy full SHA for 0a54504
compiler/src/dotty/tools/dotc/typer/QuotesAndSplices.scala
@@ -240,7 +240,7 @@ trait QuotesAndSplices {
240
args match // TODO support these patterns. Possibly using scala.quoted.util.Var
241
case SeqLiteral(args, _) =>
242
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)
+ report.error("Implementation restriction: references to `var`s cannot be used in higher-order pattern", arg.srcPos)
244
try ref(defn.InternalQuotedMatcher_higherOrderHole.termRef).appliedToTypeTrees(targs).appliedTo(args).withSpan(tree.span)
245
finally {
246
val patType = pat.tpe.widen
0 commit comments