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