4d9b19da82
#KT-18539 Fixed
12 lines
247 B
Plaintext
Vendored
12 lines
247 B
Plaintext
Vendored
// "Create member function 'A.plus'" "true"
|
|
|
|
class A<T>(val n: T) {
|
|
operator fun unaryPlus(): A<T> = throw Exception()
|
|
operator fun plus(t: T): A<T> {
|
|
TODO("Not yet implemented")
|
|
}
|
|
}
|
|
|
|
fun test() {
|
|
val a: A<Int> = A(1) + 2
|
|
} |