Files
kotlin-fork/js/js.translator/testData/box/native/accessToCompanionObjectFromInlineFun.kt
T
2017-07-19 12:24:09 +03:00

23 lines
265 B
Kotlin
Vendored

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