-
Notifications
You must be signed in to change notification settings - Fork 1.1k
HOAS quote pattern fails to match with def caprure #17105
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Note that |
This bug is probably in https://github.com/lampepfl/dotty/blob/main/compiler/src/scala/quoted/runtime/impl/QuoteMatcher.scala. It might be related to the environment |
Or the way we recover the symbol of the arguments. The reference to |
This PR will fix #17105 by extracting symbols from eta-expanded identifiers. This fix enables the use of patterns such as ```scala case '{ def f(...): T = ...; $g(f): U } => ``` where `g` will match any expression that may contain references to `f`.
Uh oh!
There was an error while loading. Please reload this page.
Compiler version
3.2
Minimized code
Output
scalac -Xprint:inlining Macro_1.scala Test_2.scala
Expectation
The quote pattern should match and the result should be something like
The text was updated successfully, but these errors were encountered: