8 lines
92 B
Kotlin
8 lines
92 B
Kotlin
fun foo(x: Foo) {
|
|
x.<caret>foo { it * 2 }
|
|
}
|
|
|
|
trait Foo {
|
|
fun foo(f: (Int) -> Int)
|
|
}
|