Files
kotlin/idea/testData/quickfix/createFromUsage/createFunction/binaryOperations/plusExtraArgs.kt.after
2016-07-20 15:39:19 +03:00

12 lines
325 B
Plaintext
Vendored

// "Create member function 'A.plus'" "true"
class A<T>(val n: T) {
operator fun unaryPlus(): A<T> = throw Exception()
infix operator fun plus(t: T): A<T> {
TODO("not implemented") //To change body of created functions use File | Settings | File Templates.
}
}
fun test() {
val a: A<Int> = A(1) + 2
}