Files
Andrey Cherkasov 47a4785a87 [kotlin] Port ReplaceExplicitFunctionLiteralParamWithItIntention for K2
^KTIJ-30542

GitOrigin-RevId: 04c20b21e48b497a15f1a5b71696554005cb2ffd
2024-07-10 18:54:45 +00:00

11 lines
247 B
Kotlin

fun test() {
C().foo { <caret>i -> i + 1 }
}
class C {
fun foo(f: (Int) -> Int) {}
fun foo(f: (Int, Int) -> Int) {}
}
// IGNORE_K1
// the intention is inapplicable for K1, see the paired testNotApplicable_overloadResolutionAmbiguity2