Skip to content

Commit

Permalink
udpate error message
Browse files Browse the repository at this point in the history
  • Loading branch information
zeptometer committed Aug 13, 2023
1 parent f180e03 commit dc7be2b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion compiler/src/dotty/tools/dotc/quoted/QuotePatterns.scala
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ object QuotePatterns:
for (typearg <- tree.typeargs) // case (1)
do
if !typevars.contains(typearg.symbol) then
report.error("Type arguments of a hoas pattern needs to be introduced in the quoted pattern", typearg.srcPos)
report.error("Type arguments of a hoas pattern needs to be defined inside the quoted pattern", typearg.srcPos)
for (arg <- tree.args) // case (2)
do
if !uncapturedTypeVars(arg, tree.typeargs).isEmpty then
Expand Down

0 comments on commit dc7be2b

Please sign in to comment.