Extract Function: In case of top-level and member declarations place extracted function after the original container

This commit is contained in:
Alexey Sedunov
2014-05-30 14:37:41 +04:00
parent ae7ad6d61c
commit 3c5c0248a7
138 changed files with 482 additions and 440 deletions
@@ -1,4 +1,12 @@
// NEXT_SIBLING:
// SIBLING:
fun foo(a: Int): Int {
var b: Int = 1
b = i(a, b)
return b
}
fun i(a: Int, b: Int): Int {
var b1 = b
if (a > 0) {
@@ -6,12 +14,4 @@ fun i(a: Int, b: Int): Int {
}
println(b1)
return b1
}
fun foo(a: Int): Int {
var b: Int = 1
b = i(a, b)
return b
}