Report error on native declaration with a body

This commit is contained in:
Andrey Breslav
2014-12-01 15:49:05 +03:00
parent d4cf789b53
commit a94a1f8a6f
8 changed files with 79 additions and 5 deletions
@@ -662,6 +662,12 @@ public class JetDiagnosticsTestWithStdLibGenerated extends AbstractJetDiagnostic
JetTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("compiler/testData/diagnostics/testsWithStdLib/native"), Pattern.compile("^(.+)\\.kt$"), true);
}
@TestMetadata("body.kt")
public void testBody() throws Exception {
String fileName = JetTestUtils.navigationMetadata("compiler/testData/diagnostics/testsWithStdLib/native/body.kt");
doTest(fileName);
}
@TestMetadata("noBody.kt")
public void testNoBody() throws Exception {
String fileName = JetTestUtils.navigationMetadata("compiler/testData/diagnostics/testsWithStdLib/native/noBody.kt");