Extract Function: Allow to extract local variables which are used outside of extracted fragment
This commit is contained in:
+10
@@ -0,0 +1,10 @@
|
||||
// SIBLING:
|
||||
fun main(args: Array<String>) {
|
||||
val a = i()
|
||||
fun foo() = a
|
||||
}
|
||||
|
||||
fun i(): Int {
|
||||
val a = 1
|
||||
return a
|
||||
}
|
||||
Reference in New Issue
Block a user