blob: f6275bc32492571e43a7f2fdc8528c8e8ca8f80f [file]
fun <T> foo(f: (T) -> String) {}
fun test() {
<caret>foo { x: Int -> "$x"}
}
Resolved call:
Candidate descriptor: fun <T> foo(f: (T) -> String): Unit defined in root package
Resulting descriptor: fun <T> foo(f: (Int) -> String): Unit defined in root package
Explicit receiver kind = NO_EXPLICIT_RECEIVER
Dispatch receiver = NO_RECEIVER
Extension receiver = NO_RECEIVER
Value arguments mapping:
SUCCESS f : (Int) -> String = { x: Int -> "$x"}