Create from Usage: Implement 'Create property as constructor parameter' quick-fix

#KT-8426 Fixed
This commit is contained in:
Alexey Sedunov
2015-10-19 11:32:33 +03:00
parent bdd495460b
commit 929d06c86f
45 changed files with 422 additions and 30 deletions
@@ -0,0 +1,10 @@
// "Create property 'foo' as constructor parameter" "false"
// ACTION: Create property 'foo'
// ACTION: Convert to expression body
// ACTION: Create local variable 'foo'
// ACTION: Create parameter 'foo'
// ERROR: Unresolved reference: foo
fun test(): Int {
return <caret>foo
}