Files
kotlin/idea/testData/refactoring/extractFunction/controlFlow/outputValues/initializersAndUpdate.kt
2014-09-10 16:44:46 +04:00

11 lines
218 B
Kotlin
Vendored

// WITH_RUNTIME
// PARAM_TYPES: kotlin.Int
// PARAM_DESCRIPTOR: var k: kotlin.Int defined in foo
// SIBLING:
fun foo() {
var k = 0
<selection>val a = 1
k++
val b = 2</selection>
println(a + b - k)
}