Files
kotlin-fork/idea/testData/refactoring/extractFunction/controlFlow/throws/outputValueWithThrow.kt.after
T

17 lines
271 B
Plaintext
Vendored

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