Files
kotlin-fork/idea/testData/quickfix/createFromUsage/createFunction/call/callWithLambdaArg.kt.after
T
2015-10-01 17:35:24 +03:00

12 lines
342 B
Plaintext
Vendored

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