Files
kotlin-fork/idea/testData/refactoring/extractFunction/controlFlow/outputValues/singleOutputValue.kt.after
T
2014-06-23 21:10:12 +04:00

17 lines
229 B
Plaintext

// PARAM_TYPES: kotlin.Int
// PARAM_TYPES: kotlin.Int
// 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
b1 += a
println(b1)
return b1
}