Extract Function: In case of top-level and member declarations place extracted function after the original container
This commit is contained in:
@@ -1,12 +1,12 @@
|
||||
// NEXT_SIBLING:
|
||||
// SIBLING:
|
||||
fun foo(a: Int): Int {
|
||||
if (b(a)) return a
|
||||
return -a
|
||||
}
|
||||
|
||||
fun b(a: Int): Boolean {
|
||||
// test
|
||||
println(a)
|
||||
if (a > 0) return true
|
||||
return false
|
||||
}
|
||||
|
||||
fun foo(a: Int): Int {
|
||||
if (b(a)) return a
|
||||
return -a
|
||||
}
|
||||
Reference in New Issue
Block a user