We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
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
class C { def f(x: Int): Unit = () val f: String => Unit = s => () f("a") }
The above code is compiled in scalac but results the following error in dotc.
-- [E007] Type Mismatch Error: ../B.scala:4:4 ---------------------------------- 4 | f("a") | ^^^ | found: String("a") | required: Int | one error found
Is it an intended semantics of dotty?
The text was updated successfully, but these errors were encountered:
This compiles in latest master
Sorry, something went wrong.
Test case scala#4854
c70d59b
No branches or pull requests
The above code is compiled in scalac but results the following error in dotc.
Is it an intended semantics of dotty?
The text was updated successfully, but these errors were encountered: