Files
kotlin-fork/compiler/testData/codegen/box/callableReference/kt49526b.kt
T

12 lines
236 B
Kotlin
Vendored

// IGNORE_BACKEND: NATIVE
// WITH_STDLIB
inline fun <T> useRef(value: T, f: (T) -> Boolean) = f(value)
fun box(): String {
val chars = listOf('a') + "-"
val ref = chars::contains
return if (ref('a')) "OK" else "Failed"
}