3ba776fffa
#KT-11176 Fixed (cherry picked from commit 3641ad6)
12 lines
323 B
Plaintext
Vendored
12 lines
323 B
Plaintext
Vendored
// "Create member function 'plus'" "true"
|
|
|
|
class A<T>(val n: T) {
|
|
operator fun unaryPlus(): A<T> = throw Exception()
|
|
infix 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
|
|
} |