[NI] Don't fail on captured type that contains type variable

This commit is contained in:
Mikhail Zarechenskiy
2018-01-17 18:27:12 +03:00
parent 145c04e7e2
commit 4cd07f59a0
7 changed files with 63 additions and 15 deletions
@@ -10660,6 +10660,12 @@ public class DiagnosticsTestGenerated extends AbstractDiagnosticsTest {
doTest(fileName);
}
@TestMetadata("capturedTypeWithTypeVariableSubtyping.kt")
public void testCapturedTypeWithTypeVariableSubtyping() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/diagnostics/tests/inference/capturedTypes/capturedTypeWithTypeVariableSubtyping.kt");
doTest(fileName);
}
@TestMetadata("expectedTypeMismatchWithInVariance.kt")
public void testExpectedTypeMismatchWithInVariance() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/diagnostics/tests/inference/capturedTypes/expectedTypeMismatchWithInVariance.kt");
@@ -10660,6 +10660,12 @@ public class DiagnosticsUsingJavacTestGenerated extends AbstractDiagnosticsUsing
doTest(fileName);
}
@TestMetadata("capturedTypeWithTypeVariableSubtyping.kt")
public void testCapturedTypeWithTypeVariableSubtyping() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/diagnostics/tests/inference/capturedTypes/capturedTypeWithTypeVariableSubtyping.kt");
doTest(fileName);
}
@TestMetadata("expectedTypeMismatchWithInVariance.kt")
public void testExpectedTypeMismatchWithInVariance() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/diagnostics/tests/inference/capturedTypes/expectedTypeMismatchWithInVariance.kt");