// FILE: main.kt

package foo

@JsName("A")
external open class B(foo: String) {
    val foo: String
}

class C(s: String) : B(s)

fun box(): String {
    return C("OK").foo
}

// FILE: test.js

function A(foo) {
    this.foo = foo;
}