Files
kotlin/idea/testData/quickfix/createFromUsage/createFunction/binaryOperations/afterPlusMissingArgs.kt
Alexey Sedunov 7123ca8ea0 Name suggester: Respect type parameter name when suggesting name for
variables based on that type parameter
2014-11-10 21:10:39 +03:00

13 lines
336 B
Kotlin

// "Create function 'plus'" "true"
class A<T>(val n: T) {
fun plus(i: Int, s: String): A<T> = throw Exception()
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
}