a1e86e8bfa
(cherry picked from commit a51d3fc)
9 lines
181 B
Kotlin
Vendored
9 lines
181 B
Kotlin
Vendored
// "Create member function 'A.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)
|
|
} |