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
3.2.0
trait Env { type Res } type EnvFunc = (env: Env) ?=> env.Res val func1: (env: Env) ?=> env.Res = ??? val func2: EnvFunc = ??? def consume(f: EnvFunc): Unit = ??? object Main { consume(func1) // ok consume(func2) // error }
[error] 33 | consume(func2) // error [error] | ^^^^^ [error] | Found: examples.Env#Res [error] | Required: evidence$2.Res
Both functions should type check, as I expect type alias usages to be always interchangeable with their definition.
The text was updated successfully, but these errors were encountered:
I verified that this works now on latest main.
Sorry, something went wrong.
Thanks for confirming, @odersky! Do you know which PR fixed it? I'm curious to see details about this.
I think it was #15742, but did not check.
No branches or pull requests
Compiler version
3.2.0
Minimized code
Output
Expectation
Both functions should type check, as I expect type alias usages to be always interchangeable with their definition.
The text was updated successfully, but these errors were encountered: