Files
kotlin/idea/testData/quickfix/createFromUsage/createFunction/callableReferences/extensionWithReceiverInCallableRef.kt.after
2016-08-18 19:15:37 +03:00

14 lines
312 B
Plaintext
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::foo))
}
private fun Int.foo(): String {
TODO("not implemented") //To change body of created functions use File | Settings | File Templates.
}