Fix NewKotlinTypeChecker for case SimpleType with CapturedTypeConstructor.

Usually, we have only CapturedType with such constructor.
We should prevent creation such types in the future (KT-16147).
Also added test for KT-14740 where this problem originally appears.
This commit is contained in:
Stanislav Erokhin
2017-02-03 03:13:35 +03:00
parent 7147008e21
commit cc429cd865
4 changed files with 65 additions and 5 deletions
@@ -16111,6 +16111,12 @@ public class DiagnosticsTestGenerated extends AbstractDiagnosticsTest {
doTest(fileName);
}
@TestMetadata("kt14740.kt")
public void testKt14740() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/diagnostics/tests/regressions/kt14740.kt");
doTest(fileName);
}
@TestMetadata("kt1489_1728.kt")
public void testKt1489_1728() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/diagnostics/tests/regressions/kt1489_1728.kt");