Skip to content

Commit 25de286

Browse files
authored
Merge pull request #5929 from dotty-staging/test-#5810
Regression test for #5810
2 parents 844754f + 8234e64 commit 25de286

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

tests/neg/i5810.scala

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -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

Comments
 (0)