New issue
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
spurious "comparing non-null values .. will always return false" in pattern match #5932
Comments
Imported From: https://issues.scala-lang.org/browse/SI-5932?orig=1 |
@retronym said: class A
case object B extends A
object Test {
val x1 = (B: A)
println(x1 == B)
println(B == x1)
val x2 = (B: A with Product)
println(x2 == B)
println(B == x2) // spurious warning
}
|
@retronym said:
|
@adriaanm said: |
@retronym said: I should have noted that |
@retronym said: |
@SethTisue said: |
The text was updated successfully, but these errors were encountered: