Extract Function: Allow to extract local variables which are used outside of extracted fragment

This commit is contained in:
Alexey Sedunov
2014-07-03 18:55:11 +04:00
parent 540e8b8b46
commit d95f6383b7
35 changed files with 439 additions and 93 deletions
@@ -0,0 +1,10 @@
// SIBLING:
fun main(args: Array<String>) {
val a = i()
fun foo() = a
}
fun i(): Int {
val a = 1
return a
}