JS: prohibit non-abstract members of external interfaces, except for nullable properties. See KT-15308

This commit is contained in:
Alexey Andreev
2016-12-19 14:39:26 +03:00
parent 403753f5b5
commit 55d4c0e439
10 changed files with 81 additions and 5 deletions
@@ -599,6 +599,12 @@ public class DiagnosticsTestWithJsStdLibGenerated extends AbstractDiagnosticsTes
doTest(fileName);
}
@TestMetadata("nonAbstractMembersOfInterface.kt")
public void testNonAbstractMembersOfInterface() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/diagnostics/testsWithJsStdLib/native/nonAbstractMembersOfInterface.kt");
doTest(fileName);
}
@TestMetadata("overrideOptionalParam.kt")
public void testOverrideOptionalParam() throws Exception {
String fileName = KotlinTestUtils.navigationMetadata("compiler/testData/diagnostics/testsWithJsStdLib/native/overrideOptionalParam.kt");