-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
Add explanation to error when using nested quotes. #17338
Comments
@nicolasstucki Could you clarify if this is indeed a bug? |
This is not a bug. The error message is correct, but we might be able to give some extra information about the problem. Here the issue is that each quote summons an implicit instance of type - def test(using quotes: Quotes): Expr[Expr[Int]] =
+ def test(using Quotes): Expr[Quotes ?=> Expr[Int]] = |
The task should then be about adding an explanation to errors arising from nested quotes. The current error is misleading. |
Compiler version
3.3.0-RC4
Minimized code
Reproduction: https://github.com/steinybot/bug-reports/tree/dotty/wrong-staging-level-multi-stage
Output
Expectation
According to the docs:
I thought that this example should have compiled and produces an
Expr[Expr[Int]]
which I could then evaluate twice withrun
.Perhaps I have misunderstood, but if that is the case then I think the docs are misleading.
The text was updated successfully, but these errors were encountered: