Create From Usage: Place local variable declaration right before its usage
#KT-6704 Fixed
This commit is contained in:
+8
@@ -0,0 +1,8 @@
|
||||
// "Create local variable 'foo'" "true"
|
||||
|
||||
fun test(n: Int) {
|
||||
val i = 1
|
||||
test(i)
|
||||
test(i + 1)
|
||||
test(<caret>foo)
|
||||
}
|
||||
Reference in New Issue
Block a user