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
type C = Function0[Int] | Function0[String] def foo(c: C): Unit = () foo(() => 1)
3.1.1: 3.1.2:
The text was updated successfully, but these errors were encountered:
Additional note that foo( (() => 1): Function0[Int] ) (explicit ascription) compiles.
foo( (() => 1): Function0[Int] )
Sorry, something went wrong.
Can we find the commit that broke this?
First bad commit is 6ac8b47 from #14026
Fix findFunctionType for OrTypes
4a91353
Restore funtionality that was dropped in 6ac8b47 Fixes scala#15460
Successfully merging a pull request may close this issue.
Output
3.1.1:


3.1.2:
The text was updated successfully, but these errors were encountered: