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

9 lines
143 B
Kotlin

// NEXT_SIBLING:
fun foo(a: Int): Int {
var b: Int = 1
<selection>if (n == 10) throw Exception("")
b++</selection>
return b
}