aeee8bafe6
#KT-8111 Fixed
13 lines
348 B
Plaintext
Vendored
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")
|
|
} |