mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-12 08:31:28 +00:00
9 lines
178 B
Kotlin
Vendored
9 lines
178 B
Kotlin
Vendored
// "Create extension function 'foo'" "true"
|
|
// WITH_RUNTIME
|
|
fun <T, U> T.map(f: (T) -> U) = f(this)
|
|
|
|
fun consume(s: String) {}
|
|
|
|
fun test() {
|
|
consume(1.map(Int::<caret>foo))
|
|
} |