Capture notnullable type if type variable is nullable

This commit is contained in:
Svetlana Isakova
2014-12-09 18:46:50 +03:00
parent da8fdbd23e
commit 0149e8048c
6 changed files with 36 additions and 13 deletions
@@ -5106,6 +5106,12 @@ public class JetDiagnosticsTestGenerated extends AbstractJetDiagnosticsTest {
doTest(fileName);
}
@TestMetadata("captureFromNullableTypeVariable.kt")
public void testCaptureFromNullableTypeVariable() throws Exception {
String fileName = JetTestUtils.navigationMetadata("compiler/testData/diagnostics/tests/inference/capturedTypes/captureFromNullableTypeVariable.kt");
doTest(fileName);
}
@TestMetadata("captureTypeOnlyOnTopLevel.kt")
public void testCaptureTypeOnlyOnTopLevel() throws Exception {
String fileName = JetTestUtils.navigationMetadata("compiler/testData/diagnostics/tests/inference/capturedTypes/captureTypeOnlyOnTopLevel.kt");