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.1
case class Ball(value: Int) { def number = value def isMagic = number == 8 } trait Magicify extends Ball { override def number: Int = super[Ball].number + 1 } object m extends Ball(1) with Magicify @main def test() = println(m)
Exception in thread "main" java.lang.VerifyError: Bad invokespecial instruction: current class isn't assignable to reference class.
2.13.10 says
restricted.scala:8: error: Implementation restriction: traits may not select fields or methods from super[C] where C is a class
same ballpark: #9341 #1501
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Compiler version
3.2.1
Minimized code
Output
Expectation
2.13.10 says
same ballpark:
#9341
#1501
The text was updated successfully, but these errors were encountered: