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
Works in 2.9.x fails in trunk.
object Test { def ==(p: Phase): Int = 0 def foo { ==(new Phase()) } } class Phase
leads to
Test.scala:6: warning: object Test and Phase are unrelated: they will most likely never compare equal ==(new Phase()) ^ one warning found
I guess it gets confused about the receiver of == and doesn't take into consideration that it can be overloaded.
The text was updated successfully, but these errors were encountered:
Imported From: https://issues.scala-lang.org/browse/SI-5175?orig=1 Reporter: @hubertp Affected Versions: 2.10.0
Sorry, something went wrong.
@hubertp said: btw, the bytecode is correct.
@soc said: Could this be related to the changes made in SI-4766?
@paulp said: Fixed in 33ab1a574af .
paulp
No branches or pull requests
Works in 2.9.x fails in trunk.
leads to
I guess it gets confused about the receiver of == and doesn't take into consideration that it can be overloaded.
The text was updated successfully, but these errors were encountered: