[KT-24335]

Fix inheritance from interface which is also inherited from an external interface
Add test case
This commit is contained in:
Roman Artemev
2018-05-10 17:11:15 +03:00
committed by Roman Artemev
parent 93f5fe2451
commit 4f2d5baa5d
4 changed files with 42 additions and 1 deletions
@@ -3547,6 +3547,11 @@ public class BoxJsTestGenerated extends AbstractBoxJsTest {
KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("js/js.translator/testData/box/inheritance/interfaces"), Pattern.compile("^([^_](.+))\\.kt$"), TargetBackend.JS, true);
}
@TestMetadata("fromExternalInterface.kt")
public void testFromExternalInterface() throws Exception {
runTest("js/js.translator/testData/box/inheritance/interfaces/fromExternalInterface.kt");
}
@TestMetadata("withDefaultMethod.kt")
public void testWithDefaultMethod() throws Exception {
runTest("js/js.translator/testData/box/inheritance/interfaces/withDefaultMethod.kt");
@@ -3547,6 +3547,11 @@ public class IrBoxJsTestGenerated extends AbstractIrBoxJsTest {
KotlinTestUtils.assertAllTestsPresentByMetadata(this.getClass(), new File("js/js.translator/testData/box/inheritance/interfaces"), Pattern.compile("^([^_](.+))\\.kt$"), TargetBackend.JS_IR, true);
}
@TestMetadata("fromExternalInterface.kt")
public void testFromExternalInterface() throws Exception {
runTest("js/js.translator/testData/box/inheritance/interfaces/fromExternalInterface.kt");
}
@TestMetadata("withDefaultMethod.kt")
public void testWithDefaultMethod() throws Exception {
runTest("js/js.translator/testData/box/inheritance/interfaces/withDefaultMethod.kt");