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.
2 parents 844754f + 8234e64 commit 25de286Copy full SHA for 25de286
tests/neg/i5810.scala
@@ -0,0 +1,5 @@
1
+import language.strictEquality
2
+def f[T](x: T) =
3
+ if (x == null) ??? // error: cannot be compared
4
+ else if (x == "abc") ??? // error: cannot be compared
5
+ else ???
0 commit comments