Files
kotlin-fork/compiler/fir/analysis-tests/testData/resolve/extendedCheckers/unused/invokeKFunction.kt
T
Roman Golyshev c3a61f539b KT-64832 KT-61032 [FIR] Correctly handle extension receiver from implicit invoke calls in UnusedChecker
- 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
2024-01-11 09:58:04 +00:00

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