Extract Function: Implement duplicate search

This commit is contained in:
Alexey Sedunov
2014-09-16 15:26:19 +04:00
parent 03e2b4d516
commit 741e5f61e9
30 changed files with 1110 additions and 201 deletions
@@ -0,0 +1,25 @@
// WITH_RUNTIME
// PARAM_TYPES: kotlin.Int
// PARAM_DESCRIPTOR: val z: kotlin.Int defined in test
// SIBLING:
fun test(): () -> Int {
val z = 1
return {
i(z)
}
}
private fun i(z: Int): Int {
println(z)
return z + 1
}
fun foo1(a: Int): Int {
val t = println(a)
return a + 1
}
fun foo2(a: Int) {
i(a)
}