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

12 lines
247 B
Plaintext
Vendored

// "Create member function 'A.plus'" "true"
class A<T>(val n: T) {
operator fun unaryPlus(): A<T> = throw Exception()
operator fun plus(t: T): A<T> {
TODO("Not yet implemented")
}
}
fun test() {
val a: A<Int> = A(1) + 2
}