[NI] Consider type non-nullable only if it has non-null supertype

Fixes #KT-12684 for NI
This commit is contained in:
Mikhail Zarechenskiy
2018-10-23 17:00:25 +03:00
parent 20ff74a726
commit 021732f74a
5 changed files with 27 additions and 1 deletions
@@ -8385,6 +8385,11 @@ public class DiagnosticsTestGenerated extends AbstractDiagnosticsTest {
runTest("compiler/testData/diagnostics/tests/generics/nullability/capturedTypeWithPlatformSupertype.kt");
}
@TestMetadata("considerTypeNotNullOnlyIfItHasNotNullBound.kt")
public void testConsiderTypeNotNullOnlyIfItHasNotNullBound() throws Exception {
runTest("compiler/testData/diagnostics/tests/generics/nullability/considerTypeNotNullOnlyIfItHasNotNullBound.kt");
}
@TestMetadata("correctSubstitutionForIncorporationConstraint.kt")
public void testCorrectSubstitutionForIncorporationConstraint() throws Exception {
runTest("compiler/testData/diagnostics/tests/generics/nullability/correctSubstitutionForIncorporationConstraint.kt");