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
Consider this code:
trait A { def hi = "A" } trait B { def hi = "B" } class C extends A with B
It results in the following compiler error message:
<console>:9: error: overriding method hi in trait A of type => String; method hi in trait B of type => String needs `override' modifier class C extends A with B ^
The problem is that
scala> trait B { override def hi = "B" } <console>:7: error: method hi overrides nothing trait B { override def hi = "B" } ^
class C extends A with B { override def hi = "C" }
Maybe it is possible to improve this message.
The text was updated successfully, but these errors were encountered:
Imported From: https://issues.scala-lang.org/browse/SI-5358?orig=1 Reporter: @soc
Sorry, something went wrong.
@paulp said: a6a9684f5b
paulp
No branches or pull requests
Consider this code:
It results in the following compiler error message:
The problem is that
Maybe it is possible to improve this message.
The text was updated successfully, but these errors were encountered: