Extract Function: Add test data

This commit is contained in:
Alexey Sedunov
2014-04-10 20:09:13 +04:00
parent 4dec0508a6
commit 0d90dcf010
111 changed files with 1596 additions and 13 deletions
@@ -0,0 +1,15 @@
trait Callable<T> {
fun call(): T
}
fun foo(a: Int): Int {
// NEXT_SIBLING:
val o = <selection>object: Callable<Int> {
val b: Int = 1
override fun call(): Int {
return a + b
}
}</selection>
return o.call()
}