Extract Function: Add test data
This commit is contained in:
@@ -0,0 +1,4 @@
|
||||
fun foo(a: Int): Int {
|
||||
val b: Int = 1
|
||||
return <selection>a + b</selection>*a
|
||||
}
|
||||
@@ -0,0 +1 @@
|
||||
Cannot perform refactoring without an expression
|
||||
@@ -0,0 +1,9 @@
|
||||
fun foo(a: Int): Int {
|
||||
val b: Int = 1
|
||||
val c: Int = 1
|
||||
|
||||
<selection>println(a)
|
||||
println(b)
|
||||
println</selection>(c)
|
||||
return a + b*c
|
||||
}
|
||||
@@ -0,0 +1 @@
|
||||
Cannot perform refactoring without an expression
|
||||
Reference in New Issue
Block a user