Create From Usage: Do not suggest "val" for references used as assignment left-hand side

This commit is contained in:
Alexey Sedunov
2014-10-03 16:38:38 +04:00
parent 58126b28ca
commit 865c793561
26 changed files with 180 additions and 49 deletions
@@ -0,0 +1,8 @@
// "Create parameter 'foo'" "false"
// ACTION: Create local variable 'foo'
// ACTION: Create property 'foo' from usage
// ERROR: Unresolved reference: foo
fun test(n: Int) {
<caret>foo = n + 1
}