Mark projection of a nullable captured type as not null during simplification constrains with it and a nullable type variable

^KT-41913 Fixed
This commit is contained in:
Victor Petukhov
2020-09-18 10:25:27 +03:00
parent 0f868ff83f
commit bfb46befa5
6 changed files with 79 additions and 7 deletions
@@ -10684,6 +10684,11 @@ public class FirOldFrontendDiagnosticsTestGenerated extends AbstractFirOldFronte
runTest("compiler/testData/diagnostics/tests/inference/capturedTypes/notApproximateWhenCopyDescriptors.kt");
}
@TestMetadata("nullableCaptruredTypeAgainstNullableVariable.kt")
public void testNullableCaptruredTypeAgainstNullableVariable() throws Exception {
runTest("compiler/testData/diagnostics/tests/inference/capturedTypes/nullableCaptruredTypeAgainstNullableVariable.kt");
}
@TestMetadata("overApproximationForInCaptured.kt")
public void testOverApproximationForInCaptured() throws Exception {
runTest("compiler/testData/diagnostics/tests/inference/capturedTypes/overApproximationForInCaptured.kt");