Files
kotlin-fork/idea/testData/quickfix/createFromUsage/createFunction/call/funExtraArgs.kt.after
T
2015-11-16 11:29:59 +03:00

13 lines
348 B
Plaintext
Vendored

// "Create member function 'foo'" "true"
class A<T>(val n: T) {
fun foo(a: Int): A<T> = throw Exception()
fun foo(a: T, s: String): 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")
}