[NI] Capture from supertypes of type parameter.

This works by accident in OI, so this should be supported by new inference.
This commit is contained in:
Stanislav Erokhin
2017-04-06 22:17:18 +03:00
parent c4ddc7a3a6
commit b4bf534d29
5 changed files with 69 additions and 4 deletions
@@ -10236,6 +10236,12 @@ public class DiagnosticsTestGenerated extends AbstractDiagnosticsTest {
doTest(fileName);
}
@TestMetadata("captureFromTypeParameterUpperBound.kt")
public void testCaptureFromTypeParameterUpperBound() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/diagnostics/tests/inference/capturedTypes/captureFromTypeParameterUpperBound.kt");
doTest(fileName);
}
@TestMetadata("captureTypeOnlyOnTopLevel.kt")
public void testCaptureTypeOnlyOnTopLevel() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/diagnostics/tests/inference/capturedTypes/captureTypeOnlyOnTopLevel.kt");