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