-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Crash in summonExpr #7987
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
It is related to the fact that final class $anon extends Object {
type MirroredMonoType = Some[Int]
} but its symbol is |
How come |
So, the insight that the stacktrace gives is that after the |
Is this actually related to |
Did you have in mind something like that? given (Option[Int] { type TT }) = Some(2).asInstanceOf[Option[Int] { type TT = Float }]
summonExpr[Option[Int] { type TT = Float }] ^^ compiles ok btw |
Yeah, something like that.
In the body of a macro? |
Yeap |
We were just using the wrong kind of typer. |
Ah. During macro expansion. The Type Assigner. Nice. 👍👍👍 |
Fix #7987: Use normal typer when expanding a macro
Uh oh!
There was an error while loading. Please reload this page.
minimized code
Stack trace
This resulted after further investigating this #7974
The text was updated successfully, but these errors were encountered: