Extract Function: Add test data
This commit is contained in:
+12
@@ -0,0 +1,12 @@
|
||||
// NEXT_SIBLING:
|
||||
fun foo(a: Int): Int {
|
||||
val b: Int = 1
|
||||
for (n in 1..a) {
|
||||
<selection>when {
|
||||
a + b > 0 -> break
|
||||
a - b > 0 -> break
|
||||
else -> println(0)
|
||||
}</selection>
|
||||
}
|
||||
return 1
|
||||
}
|
||||
Reference in New Issue
Block a user