Files
kotlin-fork/compiler/testData/codegen/box/callableReference/bound/kt15446.kt
T
Roman Artemev fb499def59 Update tests
2018-10-25 15:49:21 +03:00

14 lines
234 B
Kotlin
Vendored

//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)
}