Report error on 'JvmStatic' annotation on const or @JvmField property

#KT-10415 Fixed
This commit is contained in:
Michael Bogdanov
2015-12-29 15:43:19 +03:00
parent ae4ca3b5bb
commit 91f27ba176
6 changed files with 57 additions and 0 deletions
@@ -501,6 +501,12 @@ public class DiagnosticsTestWithStdLibGenerated extends AbstractDiagnosticsTestW
KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("compiler/testData/diagnostics/testsWithStdLib/annotations/platformStatic"), Pattern.compile("^(.+)\\.kt$"), true);
}
@TestMetadata("constOrJvmFieldProperty.kt")
public void testConstOrJvmFieldProperty() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/diagnostics/testsWithStdLib/annotations/platformStatic/constOrJvmFieldProperty.kt");
doTest(fileName);
}
@TestMetadata("constructorProperty.kt")
public void testConstructorProperty() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/diagnostics/testsWithStdLib/annotations/platformStatic/constructorProperty.kt");