8 lines
98 B
Kotlin
Vendored
8 lines
98 B
Kotlin
Vendored
fun <T, R> foo(p: T, mapper : (T) -> R): R {
|
|
mapper(p)
|
|
}
|
|
|
|
fun bar() {
|
|
foo(1, x<caret>y)
|
|
}
|