Files
kotlin-fork/js/js.translator/testData/box/native/accessToCompanionObjectFromInlineFun.kt
T
2018-04-19 13:17:28 +03:00

24 lines
291 B
Kotlin
Vendored

// IGNORE_BACKEND: JS_IR
// EXPECTED_REACHABLE_NODES: 1109
// FILE: main.kt
package foo
external class B {
companion object {
val value: String
}
}
inline fun test() = B.value
fun box(): String {
return test()
}
// FILE: native.js
function B() {};
B.value = "OK";