KT-2752: add diagnostic that reports about applying JsName on overridden declarations

This commit is contained in:
Alexey Andreev
2016-06-03 13:47:25 +03:00
parent 725d13b72e
commit 16c172f053
6 changed files with 56 additions and 4 deletions
@@ -337,6 +337,12 @@ public class DiagnosticsTestWithJsStdLibGenerated extends AbstractDiagnosticsTes
doTest(fileName);
}
@TestMetadata("jsNameOnOverride.kt")
public void testJsNameOnOverride() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/diagnostics/testsWithJsStdLib/name/jsNameOnOverride.kt");
doTest(fileName);
}
@TestMetadata("jsNameOnPropertyAndAccessor.kt")
public void testJsNameOnPropertyAndAccessor() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/diagnostics/testsWithJsStdLib/name/jsNameOnPropertyAndAccessor.kt");