[NI] Add constrains even we try add constraint like TypeVariable <: CapturedType from subtyping.

If such captured type has lower type, then from TypeVariable <: lowerType => TypeVariable <: CapturedType.
This commit is contained in:
Stanislav Erokhin
2017-04-07 13:24:34 +03:00
parent 657c332a1f
commit 53caa84db9
6 changed files with 67 additions and 34 deletions
@@ -10242,6 +10242,12 @@ public class DiagnosticsTestGenerated extends AbstractDiagnosticsTest {
doTest(fileName);
}
@TestMetadata("captureFromSubtyping.kt")
public void testCaptureFromSubtyping() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/diagnostics/tests/inference/capturedTypes/captureFromSubtyping.kt");
doTest(fileName);
}
@TestMetadata("captureFromTypeParameterUpperBound.kt")
public void testCaptureFromTypeParameterUpperBound() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/diagnostics/tests/inference/capturedTypes/captureFromTypeParameterUpperBound.kt");