Booleans are no longer Comparable

This commit is contained in:
Alexander Udalov
2012-11-28 17:03:56 +04:00
parent b23601eefe
commit 9eecf22e15
7 changed files with 16 additions and 13 deletions
@@ -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>");