PSI2IR KT-49526 function reference type approximation hack
This commit is contained in:
@@ -0,0 +1,12 @@
|
||||
// IGNORE_BACKEND_FIR: JVM_IR
|
||||
// FIR_STATUS: callable reference type approximation hack not implemented
|
||||
|
||||
// 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"
|
||||
}
|
||||
Reference in New Issue
Block a user