Files
kotlin-fork/compiler/testData/codegen/box/callableReference/kt49526b.kt
T
2022-08-01 08:57:16 +00:00

10 lines
209 B
Kotlin
Vendored

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