-
Notifications
You must be signed in to change notification settings - Fork 1.1k
assertion failed: unexpected top splice outside quote #7887
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
Labels
Comments
It should not compile since |
Minimized to def typed[A](given t: quoted.Type[A], qctx: quoted.QuoteContext): Unit = {
import qctx.tasty.{given, _}
'{
type T = $t
${'{???}.cast[T]}
}
} |
This seems to be an instance of #7405 where the type is at level -1. |
With the change proposed in #7405 , it should compile. |
OlivierBlanvillain
pushed a commit
to dotty-staging/dotty
that referenced
this issue
Jan 23, 2020
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
minimized code
Stack trace
The text was updated successfully, but these errors were encountered: