220141ab2b
(cherry picked from commit b620099)
12 lines
223 B
Kotlin
Vendored
12 lines
223 B
Kotlin
Vendored
// IS_APPLICABLE: false
|
|
|
|
interface Transformer {
|
|
fun transform(x: Int = 0, f: (Int) -> Int) = f(x)
|
|
}
|
|
|
|
class TransformerImpl : Transformer
|
|
|
|
fun bar(x: Int) = x * x
|
|
|
|
val y = TransformerImpl().transform { <caret>bar(it) }
|