Create From Usage: Fix template insertion when target container is not empty

This commit is contained in:
Alexey Sedunov
2014-10-20 15:01:11 +04:00
parent 07a2a16232
commit d4a9b922e5
4 changed files with 38 additions and 3 deletions
@@ -0,0 +1,14 @@
// "Create function 'foo' from usage" "true"
class F {
fun bar() {
}
fun foo(i: Int, s: String): Int {
throw UnsupportedOperationException("not implemented") //To change body of created functions use File | Settings | File Templates.
}
}
class X {
val f: Int = F().foo(1, "2")
}
@@ -0,0 +1,10 @@
// "Create function 'foo' from usage" "true"
class F {
fun bar() {
}
}
class X {
val f: Int = F().<caret>foo(1, "2")
}