KT-12877: don't throw exception when @JsModule annotation is improperly used

This commit is contained in:
Alexey Andreev
2016-11-29 15:04:31 +03:00
committed by Alexey Andreev
parent d40e923722
commit df88ebb1b3
4 changed files with 29 additions and 3 deletions
@@ -311,6 +311,12 @@ public class DiagnosticsTestWithJsStdLibGenerated extends AbstractDiagnosticsTes
doTest(fileName);
}
@TestMetadata("jsModuleWithoutParameters.kt")
public void testJsModuleWithoutParameters() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/diagnostics/testsWithJsStdLib/module/jsModuleWithoutParameters.kt");
doTest(fileName);
}
@TestMetadata("jsVarProhibited.kt")
public void testJsVarProhibited() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/diagnostics/testsWithJsStdLib/module/jsVarProhibited.kt");