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

9 lines
200 B
Kotlin

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