Files
kotlin-fork/idea/testData/quickfix/createFromUsage/createFunction/call/callWithLambdaArgOnly.kt.after
T

12 lines
286 B
Plaintext
Vendored

// "Create member function 'foo'" "true"
class A<T>(val n: T) {
fun foo(function: (T) -> T): A<T> {
TODO("not implemented") //To change body of created functions use File | Settings | File Templates.
}
}
fun test() {
val a: A<Int> = A(1).foo { p: Int -> p + 1 }
}