JS: prohibit referencing noImpl property from non-external declarations. See KT-15306

This commit is contained in:
Alexey Andreev
2016-12-29 19:21:22 +03:00
parent 199790276b
commit daac24b62e
7 changed files with 102 additions and 1 deletions
@@ -48,6 +48,12 @@ public class DiagnosticsTestWithJsStdLibGenerated extends AbstractDiagnosticsTes
doTest(fileName);
}
@TestMetadata("noImpl.kt")
public void testNoImpl() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/diagnostics/testsWithJsStdLib/noImpl.kt");
doTest(fileName);
}
@TestMetadata("runtimeAnnotations.kt")
public void testRuntimeAnnotations() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/diagnostics/testsWithJsStdLib/runtimeAnnotations.kt");