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

16 lines
209 B
Plaintext

// PARAM_TYPES: kotlin.Int
// SIBLING:
fun foo(a: Int): Int {
var b: Int = 1
b = i(b)
return b
}
fun i(b: Int): Int {
var b1 = b
if (n == 10) throw Exception("")
b1++
return b1
}