Files
kotlin-fork/idea/testData/quickfix/createFromUsage/createFunction/call/afterCallWithLambdaArg.kt
T
Alexey Sedunov 7123ca8ea0 Name suggester: Respect type parameter name when suggesting name for
variables based on that type parameter
2014-11-10 21:10:39 +03:00

12 lines
344 B
Kotlin

// "Create function 'foo'" "true"
class A<T>(val n: T) {
fun foo(t: T, s: String, function: Function1<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 }
}