Create From Usage: Fix template insertion when target container is not empty
This commit is contained in:
+14
@@ -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")
|
||||
}
|
||||
+10
@@ -0,0 +1,10 @@
|
||||
// "Create function 'foo' from usage" "true"
|
||||
class F {
|
||||
fun bar() {
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
class X {
|
||||
val f: Int = F().<caret>foo(1, "2")
|
||||
}
|
||||
Reference in New Issue
Block a user