Files
kotlin/idea/testData/quickfix/createFromUsage/createFunction/binaryOperations/plusMissingArgs.kt.after

13 lines
352 B
Plaintext
Vendored

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