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
The following code should not compile, as it allows unsound constructs:
object Test { trait A { def polymorphic[x]: Int } val a = new A { val polymorphic = Unit } }
(compiles in both 0.10.0-RC1 and 0.11.0-bin-20181113-bf5ba46-NIGHTLY.)
0.10.0-RC1
0.11.0-bin-20181113-bf5ba46-NIGHTLY
The code fails as expected when trait is replaced with abstract class.
trait
abstract class
The text was updated successfully, but these errors were encountered:
Fixed by #5622
Sorry, something went wrong.
Test case for scala#5445
6c31e64
No branches or pull requests
The following code should not compile, as it allows unsound constructs:
(compiles in both
0.10.0-RC1
and0.11.0-bin-20181113-bf5ba46-NIGHTLY
.)The code fails as expected when
trait
is replaced withabstract class
.The text was updated successfully, but these errors were encountered: