Create From Usage: Place generated declarations next to original element container if they have common parent

#KT-6687 Fixed
This commit is contained in:
Alexey Sedunov
2015-03-06 18:08:36 +03:00
parent fe9b08f93d
commit ab5a691612
19 changed files with 136 additions and 53 deletions
@@ -0,0 +1,18 @@
// "Create function 'foo'" "true"
class A {
val baz = 1
fun test() {
val a: A = foo()
}
private fun foo(): A {
throw UnsupportedOperationException("not implemented") //To change body of created functions use File | Settings | File Templates.
}
fun bar() {
}
}