Intentions: Implement "Introduce local variable" intention

#KT-11768 Fixed
This commit is contained in:
Alexey Sedunov
2016-04-13 17:37:17 +03:00
parent d75edb9876
commit aa4bfadfb1
25 changed files with 204 additions and 7 deletions
@@ -1,4 +1,5 @@
// "Create class 'A'" "false"
// ACTION: Rename reference
// ACTION: Introduce local variable
// ERROR: Unresolved reference: A
fun foo() = J.<caret>A.B
@@ -2,5 +2,6 @@
// ERROR: Too many arguments for public constructor G() defined in G
// ACTION: Convert to block body
// ACTION: Create function 'G'
// ACTION: Introduce local variable
fun test() = G(<caret>1)