mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-12 00:21:32 +00:00
8 lines
146 B
Kotlin
Vendored
8 lines
146 B
Kotlin
Vendored
// "Create function 'foo'" "true"
|
|
fun <T, U> T.map(f: T.() -> U) = f()
|
|
|
|
fun consume(s: String) {}
|
|
|
|
fun test() {
|
|
consume(1.map(::<caret>foo))
|
|
} |