Fix computation of erased receiver for intersection types

#KT-9630 Fixed
This commit is contained in:
Mikhail Zarechenskiy
2016-12-26 18:07:38 +03:00
parent f7d64ac807
commit 38a2518498
14 changed files with 205 additions and 1 deletions
@@ -2216,12 +2216,30 @@ public class LightAnalysisModeCodegenTestGenerated extends AbstractLightAnalysis
doTest(fileName);
}
@TestMetadata("intersectionTypeMultipleBoundsImplicitReceiver.kt")
public void testIntersectionTypeMultipleBoundsImplicitReceiver() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/codegen/box/casts/intersectionTypeMultipleBoundsImplicitReceiver.kt");
doTest(fileName);
}
@TestMetadata("intersectionTypeSmartcast.kt")
public void testIntersectionTypeSmartcast() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/codegen/box/casts/intersectionTypeSmartcast.kt");
doTest(fileName);
}
@TestMetadata("intersectionTypeWithMultipleBoundsAsReceiver.kt")
public void testIntersectionTypeWithMultipleBoundsAsReceiver() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/codegen/box/casts/intersectionTypeWithMultipleBoundsAsReceiver.kt");
doTest(fileName);
}
@TestMetadata("intersectionTypeWithoutGenericsAsReceiver.kt")
public void testIntersectionTypeWithoutGenericsAsReceiver() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/codegen/box/casts/intersectionTypeWithoutGenericsAsReceiver.kt");
doTest(fileName);
}
@TestMetadata("is.kt")
public void testIs() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/codegen/box/casts/is.kt");