Files
kotlin-fork/js/js.translator/testData/box/jsName/inheritFromRenamedNativeClassMultimodule.kt
T
Alexey Andreev 3b3fd0fa0d JS: fix DCE limits in test data to fit new kotlin.js size
The size has increased due to new implementation of KClass
2017-10-06 18:16:51 +03:00

26 lines
345 B
Kotlin
Vendored

// EXPECTED_REACHABLE_NODES: 1116
// MODULE: module1
// FILE: module1.kt
package foo
@JsName("A")
external open class B(foo: String) {
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;
}