Files
kotlin-fork/idea/testData/refactoring/extractFunction/controlFlow/unextractable/variablesOutOfScope.kt
T

7 lines
115 B
Kotlin
Vendored

// SIBLING:
fun foo(t: Int): Int {
<selection>val x = t + 1
if (x > 0) return x</selection>
return 0
}