Fix common supertype calculation

Use star-projections instead of 'out Any?' in corner cases

 #KT-11468 Fixed
This commit is contained in:
Denis Zharkov
2016-03-17 14:56:21 +03:00
parent bace881463
commit ce8add2802
9 changed files with 111 additions and 5 deletions
@@ -11833,6 +11833,18 @@ public class BlackBoxCodegenTestGenerated extends AbstractBlackBoxCodegenTest {
doTest(fileName);
}
@TestMetadata("commonSupertypeContravariant.kt")
public void testCommonSupertypeContravariant() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/codegen/box/regressions/commonSupertypeContravariant.kt");
doTest(fileName);
}
@TestMetadata("commonSupertypeContravariant2.kt")
public void testCommonSupertypeContravariant2() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/codegen/box/regressions/commonSupertypeContravariant2.kt");
doTest(fileName);
}
@TestMetadata("doubleMerge.kt")
public void testDoubleMerge() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/codegen/box/regressions/doubleMerge.kt");