Files
kotlin-fork/idea/testData/refactoring/extractFunction/controlFlow/unextractable/variablesOutOfScope.kt
T
2014-04-17 19:01:20 +04:00

7 lines
120 B
Kotlin

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