299097d112
(cherry picked from commit 5232af5)
8 lines
176 B
Kotlin
Vendored
8 lines
176 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(y = 3) { <caret>bar(it) }
|