JS: fix FE crashing when type argument count less than parameter count

See KT-20908
This commit is contained in:
Alexey Andreev
2017-10-23 20:14:08 +03:00
parent a6e98c30d7
commit e488cf13ad
4 changed files with 18 additions and 1 deletions
@@ -434,6 +434,12 @@ public class DiagnosticsTestWithJsStdLibGenerated extends AbstractDiagnosticsTes
doTest(fileName);
}
@TestMetadata("incompleteReifiedArg.kt")
public void testIncompleteReifiedArg() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/diagnostics/testsWithJsStdLib/module/incompleteReifiedArg.kt");
doTest(fileName);
}
@TestMetadata("jsModuleNonExternal.kt")
public void testJsModuleNonExternal() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/diagnostics/testsWithJsStdLib/module/jsModuleNonExternal.kt");