Extract Function: Generate function in property's enclosing declaration if original expression belongs to initializer of that property

#KT-6290 Fixed
This commit is contained in:
Alexey Sedunov
2014-12-26 11:53:44 +03:00
parent 22f4caa78d
commit 59d646bc16
10 changed files with 50 additions and 29 deletions
@@ -1,8 +1,8 @@
fun foo() {
fun i(): Int {
return 1 + 1
}
val x = i()
val y = i()
}
private fun i(): Int {
return 1 + 1
}