JS: report error when js() produces empty AST

This commit is contained in:
Alexey Tsvetkov
2015-03-11 12:50:52 +03:00
parent eb4f6b8a1e
commit 5ff5cea17a
6 changed files with 33 additions and 7 deletions
@@ -257,6 +257,12 @@ public class JetDiagnosticsTestWithJsStdLibGenerated extends AbstractJetDiagnost
doTest(fileName);
}
@TestMetadata("noJavaScriptProduced.kt")
public void testNoJavaScriptProduced() throws Exception {
String fileName = JetTestUtils.navigationMetadata("compiler/testData/diagnostics/testsWithJsStdLib/jsCode/noJavaScriptProduced.kt");
doTest(fileName);
}
@TestMetadata("warning.kt")
public void testWarning() throws Exception {
String fileName = JetTestUtils.navigationMetadata("compiler/testData/diagnostics/testsWithJsStdLib/jsCode/warning.kt");