Values equality no more provides guarantee for their types equality (for open types or types with overridden equals) #KT-11280 Fixed

This commit is contained in:
Mikhail Glukhikh
2016-03-04 14:18:20 +03:00
parent 3eb6749377
commit a830d80dac
8 changed files with 263 additions and 17 deletions
@@ -16170,6 +16170,12 @@ public class DiagnosticsTestGenerated extends AbstractDiagnosticsTest {
doTest(fileName);
}
@TestMetadata("fakeSmartCastOnEquality.kt")
public void testFakeSmartCastOnEquality() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/diagnostics/tests/smartCasts/fakeSmartCastOnEquality.kt");
doTest(fileName);
}
@TestMetadata("falseReceiverSmartCast.kt")
public void testFalseReceiverSmartCast() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/diagnostics/tests/smartCasts/falseReceiverSmartCast.kt");