Files
kotlin/idea/testData/quickfix/createFromUsage/createFunction/binaryOperations/plusMissingArgs.kt.after
2017-01-09 12:03:22 +01:00

12 lines
322 B
Plaintext
Vendored

// "Create member function 'A.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> {
TODO("not implemented") //To change body of created functions use File | Settings | File Templates.
}
}
fun test() {
val a: A<Int> = A(1) + 2
}