8 lines
136 B
Kotlin
Vendored
8 lines
136 B
Kotlin
Vendored
fun <T, U> T.map(f: (T) -> U) = f(this)
|
|
|
|
fun consume(s: String) {}
|
|
|
|
fun test() {
|
|
consume(1.map(::<!UNRESOLVED_REFERENCE!>foo<!>))
|
|
}
|