KJS: add multimodule version of inheritFromRenamedNativeClass
This commit is contained in:
@@ -4976,9 +4976,15 @@ public class BoxJsTestGenerated extends AbstractBoxJsTest {
|
|||||||
doTest(fileName);
|
doTest(fileName);
|
||||||
}
|
}
|
||||||
|
|
||||||
@TestMetadata("inherietFromRenamedNativeClass.kt")
|
@TestMetadata("inheritFromRenamedNativeClass.kt")
|
||||||
public void testInherietFromRenamedNativeClass() throws Exception {
|
public void testInheritFromRenamedNativeClass() throws Exception {
|
||||||
String fileName = KotlinTestUtils.navigationMetadata("js/js.translator/testData/box/jsName/inherietFromRenamedNativeClass.kt");
|
String fileName = KotlinTestUtils.navigationMetadata("js/js.translator/testData/box/jsName/inheritFromRenamedNativeClass.kt");
|
||||||
|
doTest(fileName);
|
||||||
|
}
|
||||||
|
|
||||||
|
@TestMetadata("inheritFromRenamedNativeClassMultimodule.kt")
|
||||||
|
public void testInheritFromRenamedNativeClassMultimodule() throws Exception {
|
||||||
|
String fileName = KotlinTestUtils.navigationMetadata("js/js.translator/testData/box/jsName/inheritFromRenamedNativeClassMultimodule.kt");
|
||||||
doTest(fileName);
|
doTest(fileName);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -1,3 +0,0 @@
|
|||||||
function A(foo) {
|
|
||||||
this.foo = foo;
|
|
||||||
}
|
|
||||||
+8
@@ -1,3 +1,5 @@
|
|||||||
|
// FILE: main.kt
|
||||||
|
|
||||||
package foo
|
package foo
|
||||||
|
|
||||||
@native
|
@native
|
||||||
@@ -8,4 +10,10 @@ class C(s: String) : B(s)
|
|||||||
|
|
||||||
fun box(): String {
|
fun box(): String {
|
||||||
return C("OK").foo
|
return C("OK").foo
|
||||||
|
}
|
||||||
|
|
||||||
|
// FILE: test.js
|
||||||
|
|
||||||
|
function A(foo) {
|
||||||
|
this.foo = foo;
|
||||||
}
|
}
|
||||||
+24
@@ -0,0 +1,24 @@
|
|||||||
|
// MODULE: module1
|
||||||
|
// FILE: module1.kt
|
||||||
|
|
||||||
|
package foo
|
||||||
|
|
||||||
|
@native
|
||||||
|
@JsName("A")
|
||||||
|
open class B(val foo: String)
|
||||||
|
|
||||||
|
// MODULE: main(module1)
|
||||||
|
// FILE: main.kt
|
||||||
|
package foo
|
||||||
|
|
||||||
|
class C(s: String) : B(s)
|
||||||
|
|
||||||
|
fun box(): String {
|
||||||
|
return C("OK").foo
|
||||||
|
}
|
||||||
|
|
||||||
|
// FILE: test.js
|
||||||
|
|
||||||
|
function A(foo) {
|
||||||
|
this.foo = foo;
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user