Files
kotlin/idea/testData/quickfix/createFromUsage/createFunction/callableReferences/nonExtensionWithReceiverInCallableRef.kt.after

14 lines
357 B
Plaintext
Vendored

// "Create extension function 'foo'" "true"
// WITH_RUNTIME
fun <T, U> T.map(f: (T) -> U) = f(this)
fun consume(s: String) {}
fun test() {
consume(1.map(Int::foo))
}
fun Int.foo(): String {
<selection>throw UnsupportedOperationException("not implemented") //To change body of created functions use File | Settings | File Templates.</selection>
}