Extract Function: Allow to combine throws with other exit points

This commit is contained in:
Alexey Sedunov
2014-04-24 18:22:02 +04:00
parent 2cfd7de8d9
commit 243ba62b65
13 changed files with 133 additions and 10 deletions
@@ -1,7 +0,0 @@
// 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
}
@@ -1 +0,0 @@
Selected code fragment has multiple exit points