[NI] Propagate non-null info on supertypes for capturing from bounds

#KT-31941 Fixed
This commit is contained in:
Mikhail Zarechenskiy
2019-06-12 20:43:02 +03:00
parent b2607b47e2
commit d9dca067f6
8 changed files with 274 additions and 222 deletions
@@ -9867,6 +9867,11 @@ public class DiagnosticsTestGenerated extends AbstractDiagnosticsTest {
runTest("compiler/testData/diagnostics/tests/inference/capturedTypes/overApproximationForOutCaptured.kt");
}
@TestMetadata("propagateNullailityOnSupertypesWhenCaptureTypes.kt")
public void testPropagateNullailityOnSupertypesWhenCaptureTypes() throws Exception {
runTest("compiler/testData/diagnostics/tests/inference/capturedTypes/propagateNullailityOnSupertypesWhenCaptureTypes.kt");
}
@TestMetadata("starProjectionRegression.kt")
public void testStarProjectionRegression() throws Exception {
runTest("compiler/testData/diagnostics/tests/inference/capturedTypes/starProjectionRegression.kt");