Files
kotlin-fork/compiler/testData/codegen/box/callableReference/bound/kt15446.kt
T
2018-08-09 14:22:50 +03:00

15 lines
259 B
Kotlin
Vendored

// IGNORE_BACKEND: JS_IR
//WITH_RUNTIME
fun box(): String {
val a = intArrayOf(1, 2)
val b = arrayOf("OK")
if ((a::component2)() != 2) {
return "fail"
}
if ((a::get)(1) != 2) {
return "fail"
}
return (b::get)(0)
}