Skip to content

Commit 1d48a93

Browse files
committed
Reclassify test
i536.scala previously compiled since the type argument was inferred to be Nothing. But that inference is useless; it just hides a runtime failure. The issue scala#536 only complained that the compiler crashed, so having a negative outcome is permissible.
1 parent 119752f commit 1d48a93

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/pending/pos/i536.scala renamed to tests/neg/i536.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,5 +8,5 @@ object Max {
88
val m1 = max(xs)
99
val m2 = max(null)
1010

11-
java.util.Collections.max(null)
11+
java.util.Collections.max(null) // error: Type argument Comparable[_] does not conform to upper bound Comparable[_ >: LazyRef(Comparable[_])]
1212
}

0 commit comments

Comments
 (0)