Nullability of intersection type should be determined by supertypes

Intersection types cannot be nullable as is because of special rules for subtyping
This commit is contained in:
Mikhail Zarechenskiy
2018-03-29 16:24:18 +03:00
parent aebcb61402
commit 0632bbbed0
6 changed files with 58 additions and 0 deletions
@@ -19432,6 +19432,12 @@ public class BlackBoxCodegenTestGenerated extends AbstractBlackBoxCodegenTest {
doTest(fileName);
}
@TestMetadata("noAssertionsWhenNullableTypeParameterReplacedWithIntersectionType.kt")
public void testNoAssertionsWhenNullableTypeParameterReplacedWithIntersectionType() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/codegen/box/regressions/noAssertionsWhenNullableTypeParameterReplacedWithIntersectionType.kt");
doTest(fileName);
}
@TestMetadata("noCapturingForTypesWithTypeVariables.kt")
public void testNoCapturingForTypesWithTypeVariables() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/codegen/box/regressions/noCapturingForTypesWithTypeVariables.kt");