KJS: add multimodule version of inheritFromRenamedNativeClass

This commit is contained in:
Zalim Bashorov
2016-11-17 14:16:41 +03:00
parent 8c630954a8
commit ef11393462
4 changed files with 41 additions and 6 deletions
@@ -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;
}