Skip to content

Commit

Permalink
Merge pull request #5929 from dotty-staging/test-#5810
Browse files Browse the repository at this point in the history
Regression test for #5810
  • Loading branch information
odersky authored Feb 15, 2019
2 parents 844754f + 8234e64 commit 25de286
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions tests/neg/i5810.scala
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
import language.strictEquality
def f[T](x: T) =
if (x == null) ??? // error: cannot be compared
else if (x == "abc") ??? // error: cannot be compared
else ???

0 comments on commit 25de286

Please sign in to comment.