Booleans are no longer Comparable
This commit is contained in:
@@ -2386,6 +2386,11 @@ public class JetDiagnosticsTestGenerated extends AbstractDiagnosticsTestWithEage
|
||||
JetTestUtils.assertAllTestsPresentByMetadata(this.getClass(), "org.jetbrains.jet.generators.tests.GenerateTests", new File("compiler/testData/diagnostics/tests/library"), "kt", true);
|
||||
}
|
||||
|
||||
@TestMetadata("BooleanIsNotComparable.kt")
|
||||
public void testBooleanIsNotComparable() throws Exception {
|
||||
doTest("compiler/testData/diagnostics/tests/library/BooleanIsNotComparable.kt");
|
||||
}
|
||||
|
||||
@TestMetadata("Collections.kt")
|
||||
public void testCollections() throws Exception {
|
||||
doTest("compiler/testData/diagnostics/tests/library/Collections.kt");
|
||||
|
||||
@@ -207,7 +207,7 @@ public class JetTypeCheckerTest extends JetLiteFixture {
|
||||
assertCommonSupertype("Derived_T<Int>", "DDerived_T<Int>", "DDerived1_T<Int>");
|
||||
|
||||
assertCommonSupertype("Comparable<*>", "Comparable<Int>", "Comparable<Boolean>");
|
||||
assertCommonSupertype("Base_T<out Comparable<*>>", "Base_T<Int>", "Base_T<Boolean>");
|
||||
assertCommonSupertype("Base_T<out Comparable<*>>", "Base_T<Int>", "Base_T<String>");
|
||||
assertCommonSupertype("Base_T<in Int>", "Base_T<Int>", "Base_T<in Int>");
|
||||
assertCommonSupertype("Base_T<in Int>", "Derived_T<Int>", "Base_T<in Int>");
|
||||
assertCommonSupertype("Base_T<in Int>", "Derived_T<in Int>", "Base_T<Int>");
|
||||
|
||||
Reference in New Issue
Block a user