fa03632197
For trailing lambda intention inserts parameter names for all arguments if at least one argument used default value. Otherwise it just keeps existing named arguments. So #KT-20349 Fixed
8 lines
175 B
Kotlin
Vendored
8 lines
175 B
Kotlin
Vendored
class Transformer {
|
|
fun transform(x: Int = 0, y: Int = 1, f: (Int) -> Int) = f(x + y)
|
|
}
|
|
|
|
fun bar(x: Int) = x * x
|
|
|
|
val y = Transformer().transform(2, 3) { <caret>bar(it) }
|