Extract Function: In case of top-level and member declarations place extracted function after the original container
This commit is contained in:
@@ -1,14 +1,14 @@
|
||||
// NEXT_SIBLING:
|
||||
fun i(a: A, t: Int, u: Int, x: Int): Int {
|
||||
return a.bar(t - x, u + x)
|
||||
}
|
||||
|
||||
// SIBLING:
|
||||
public class A() {
|
||||
fun bar(a: Int, b: Int): Int {
|
||||
return a + b
|
||||
}
|
||||
}
|
||||
|
||||
fun i(a: A, t: Int, u: Int, x: Int): Int {
|
||||
return a.bar(t - x, u + x)
|
||||
}
|
||||
|
||||
fun foo(a: A, x: Int): Int {
|
||||
val t = 10
|
||||
val u = 20
|
||||
|
||||
Reference in New Issue
Block a user