Files
kotlin/idea/testData/quickfix/createFromUsage/createFunction/callableReferences/nonExtensionWithReceiverInCallableRef.kt
2016-07-20 15:39:13 +03:00

9 lines
182 B
Kotlin
Vendored

// "Create extension function 'Int.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))
}