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