Files
kotlin-fork/idea/testData/quickfix/createFromUsage/createFunction/unaryOperations/minusMissingArgs.kt.after
T
2019-11-13 08:37:25 +09:00

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)
}