NI: Discard definitely not-null types inside invariant positions during inference process

^KT-36816 Fixed
This commit is contained in:
Victor Petukhov
2020-02-18 19:09:46 +03:00
parent 36f4b6daf3
commit 748a326104
8 changed files with 102 additions and 3 deletions
@@ -10695,6 +10695,11 @@ public class FirOldFrontendDiagnosticsTestGenerated extends AbstractFirOldFronte
KotlinTestUtils.assertAllTestsPresentByMetadataWithExcluded(this.getClass(), new File("compiler/testData/diagnostics/tests/inference/constraints"), Pattern.compile("^(.+)\\.kt$"), Pattern.compile("^(.+)\\.fir\\.kts?$"), true);
}
@TestMetadata("approximationWithDefNotNullInInvPositionDuringInference.kt")
public void testApproximationWithDefNotNullInInvPositionDuringInference() throws Exception {
runTest("compiler/testData/diagnostics/tests/inference/constraints/approximationWithDefNotNullInInvPositionDuringInference.kt");
}
@TestMetadata("constraintFromVariantTypeWithNestedProjection.kt")
public void testConstraintFromVariantTypeWithNestedProjection() throws Exception {
runTest("compiler/testData/diagnostics/tests/inference/constraints/constraintFromVariantTypeWithNestedProjection.kt");