Extract Function: Take duplicates into account when choosing placement of extracted function
#KT-5916 Fixed
This commit is contained in:
+5
-5
@@ -10,11 +10,6 @@ fun test(): () -> Int {
|
||||
}
|
||||
}
|
||||
|
||||
private fun i(z: Int): Int {
|
||||
println(z)
|
||||
return z + 1
|
||||
}
|
||||
|
||||
fun foo1(a: Int): Int {
|
||||
val t = println(a)
|
||||
return a + 1
|
||||
@@ -22,4 +17,9 @@ fun foo1(a: Int): Int {
|
||||
|
||||
fun foo2(a: Int) {
|
||||
i(a)
|
||||
}
|
||||
|
||||
private fun i(z: Int): Int {
|
||||
println(z)
|
||||
return z + 1
|
||||
}
|
||||
Reference in New Issue
Block a user