Create From Usage: Place local variable declaration right before its usage

#KT-6704 Fixed
This commit is contained in:
Alexey Sedunov
2015-03-11 17:09:50 +03:00
parent 8a0808b133
commit fe9b08f93d
4 changed files with 27 additions and 5 deletions
@@ -0,0 +1,8 @@
// "Create local variable 'foo'" "true"
fun test(n: Int) {
val i = 1
test(i)
test(i + 1)
test(<caret>foo)
}