We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
v3.1.0
trait Exactly {type Out} transparent inline def one(): Exactly = new Exactly{type Out = 1} inline def check(): Unit = val exact = one() compiletime.summonInline[exact.Out =:= 1] val x = check()
Cannot prove that exact.Out =:= (1 : Int).
No error.
The text was updated successfully, but these errors were encountered:
This is another instance of #8739. The limitation is that the type of the val does not get more precise when inlined.
val
Sorry, something went wrong.
No branches or pull requests
Compiler version
v3.1.0
Minimized code
Output
Expectation
No error.
The text was updated successfully, but these errors were encountered: