Extract Function: Allow to combine throws with other exit points
This commit is contained in:
+7
@@ -0,0 +1,7 @@
|
||||
// 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
|
||||
}
|
||||
Reference in New Issue
Block a user