KJS: fix inheritance from renamed native classes

This commit is contained in:
Zalim Bashorov
2016-11-14 19:11:49 +03:00
parent 0dc9121a91
commit c25dfe997c
4 changed files with 25 additions and 0 deletions
@@ -0,0 +1,3 @@
function A(foo) {
this.foo = foo;
}
@@ -0,0 +1,11 @@
package foo
@native
@JsName("A")
open class B(val foo: String)
class C(s: String) : B(s)
fun box(): String {
return C("OK").foo
}