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

7 lines
146 B
Kotlin

// SIBLING:
fun foo(a: Int): Int {
val b: Int = 1
val t = <selection>if (a > 0) throw Exception("") else a + b</selection>
return t
}