299097d112
(cherry picked from commit 5232af5)
8 lines
168 B
Plaintext
Vendored
8 lines
168 B
Plaintext
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, f = ::bar)
|