Files
kotlin-fork/js/js.translator/testData/box/native/accessToCompanionObjectFromInlineFun.kt
T
2019-02-25 15:09:25 +03:00

23 lines
266 B
Kotlin
Vendored

// EXPECTED_REACHABLE_NODES: 1281
// 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";