9 lines
179 B
Kotlin
Vendored
9 lines
179 B
Kotlin
Vendored
// "Create member function 'unaryMinus'" "true"
|
|
|
|
class A<T>(val n: T) {
|
|
operator fun minus(n: Int): A<T> = throw Exception()
|
|
}
|
|
|
|
fun test() {
|
|
val a: A<Int> = <caret>-A(1)
|
|
} |