c3a61f539b
- use `FirImplicitInvokeCall` instance check to detect implicit calls, it is cleaner than checking particular resolve type and "invoke" name - reuse `visitQualifiedAccesses` to update the CFG instead of manually searching through the `localProperties` (because it didn't work in the case of overloads) ^KT-64832 Fixed ^KT-61032 Fixed
8 lines
160 B
Kotlin
Vendored
8 lines
160 B
Kotlin
Vendored
// WITH_STDLIB
|
|
import kotlin.reflect.KFunction1
|
|
|
|
fun foo(action: KFunction1<String, Int>): Int {
|
|
val localAction = action
|
|
|
|
return localAction("hello")
|
|
} |