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

7 lines
151 B
Kotlin

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