KJS: fix refering to native nested class

This commit is contained in:
Zalim Bashorov
2016-11-14 22:08:06 +03:00
parent bd90b4e051
commit a03e22e774
4 changed files with 49 additions and 5 deletions
@@ -0,0 +1,28 @@
// FILE: foo.kt
package foo
@native
class A {
open class B {
fun foo(): String
}
}
class C : A.B()
fun box(): String {
return C().foo()
}
// FILE: bar.js
function A() {
}
A.B = function() {
};
A.B.prototype.foo = function() {
return "OK"
};