Files
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

10 lines
138 B
Kotlin
Vendored

fun foo() {
val <!UNUSED_VARIABLE!>x<!> = fun(s: String) {}
fun nested() {
val x = fun(i: Int) {}
x(10)
}
}