Type variable with non-trivial upper bound cannot capture 'in' projection

This commit is contained in:
Svetlana Isakova
2014-12-11 18:49:16 +03:00
parent 8b0707b15d
commit 1f6f607f40
6 changed files with 50 additions and 2 deletions
@@ -5094,6 +5094,12 @@ public class JetDiagnosticsTestGenerated extends AbstractJetDiagnosticsTest {
JetTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("compiler/testData/diagnostics/tests/inference/capturedTypes"), Pattern.compile("^(.+)\\.kt$"), true);
}
@TestMetadata("cannotCaptureInProjection.kt")
public void testCannotCaptureInProjection() throws Exception {
String fileName = JetTestUtils.navigationMetadata("compiler/testData/diagnostics/tests/inference/capturedTypes/cannotCaptureInProjection.kt");
doTest(fileName);
}
@TestMetadata("captureForNullableTypes.kt")
public void testCaptureForNullableTypes() throws Exception {
String fileName = JetTestUtils.navigationMetadata("compiler/testData/diagnostics/tests/inference/capturedTypes/captureForNullableTypes.kt");