Create Function From Usage: Quick-fix for binary operations

This commit is contained in:
Alexey Sedunov
2014-09-24 15:54:31 +04:00
parent ae69bea543
commit 0582cf5db1
33 changed files with 412 additions and 2 deletions
@@ -0,0 +1,12 @@
// "Create function 'plus' from usage" "true"
class A<T>(val n: T) {
fun plus(i: Int, s: String): A<T> = throw Exception()
fun plus(arg: 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
}