JS backend: report diagnostic for class literal(Foo::class) instead of crash with Exception.

This commit is contained in:
Zalim Bashorov
2015-03-16 22:23:52 +03:00
parent 8d6cbb671a
commit 975c4ffab5
5 changed files with 20 additions and 5 deletions
@@ -183,6 +183,12 @@ public class KotlincExecutableTestGenerated extends AbstractKotlincExecutableTes
JetTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("compiler/testData/cli/js"), Pattern.compile("^(.+)\\.args$"), false);
}
@TestMetadata("diagnosticForClassLiteral.args")
public void testDiagnosticForClassLiteral() throws Exception {
String fileName = JetTestUtils.navigationMetadata("compiler/testData/cli/js/diagnosticForClassLiteral.args");
doJsTest(fileName);
}
@TestMetadata("diagnosticForUnhandledElements.args")
public void testDiagnosticForUnhandledElements() throws Exception {
String fileName = JetTestUtils.navigationMetadata("compiler/testData/cli/js/diagnosticForUnhandledElements.args");