Captured type might be substituted in an opposite projection

out Captured (in Int) = out Int
 in Captured (out Int) = in Int
This commit is contained in:
Svetlana Isakova
2014-12-15 22:54:52 +03:00
parent 8f6f404f14
commit bda5bab057
4 changed files with 55 additions and 20 deletions
@@ -5136,6 +5136,12 @@ public class JetDiagnosticsTestGenerated extends AbstractJetDiagnosticsTest {
doTest(fileName);
}
@TestMetadata("capturedTypeSubstitutedIntoOppositeProjection.kt")
public void testCapturedTypeSubstitutedIntoOppositeProjection() throws Exception {
String fileName = JetTestUtils.navigationMetadata("compiler/testData/diagnostics/tests/inference/capturedTypes/capturedTypeSubstitutedIntoOppositeProjection.kt");
doTest(fileName);
}
@TestMetadata("kt2570.kt")
public void testKt2570() throws Exception {
String fileName = JetTestUtils.navigationMetadata("compiler/testData/diagnostics/tests/inference/capturedTypes/kt2570.kt");