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