mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-12 15:53:40 +00:00
13 lines
343 B
Plaintext
Vendored
13 lines
343 B
Plaintext
Vendored
// "Create member function 'plus'" "true"
|
|
|
|
class A<T>(val n: T) {
|
|
fun plus(i: Int, s: String): A<T> = throw Exception()
|
|
|
|
fun plus(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) + 2
|
|
} |