mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-11 15:53:46 +00:00
12 lines
322 B
Plaintext
Vendored
12 lines
322 B
Plaintext
Vendored
// "Create member function 'A.plus'" "true"
|
|
|
|
class A<T>(val n: T) {
|
|
fun plus(i: Int, s: String): A<T> = throw Exception()
|
|
operator fun plus(t: T): A<T> {
|
|
TODO("not implemented") //To change body of created functions use File | Settings | File Templates.
|
|
}
|
|
}
|
|
|
|
fun test() {
|
|
val a: A<Int> = A(1) + 2
|
|
} |