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,14 @@
// "Create member property 'foo' as constructor parameter" "false"
// ACTION: Create member property 'foo'
// ACTION: Create extension property 'foo'
// ERROR: Unresolved reference: foo
class A<T>(val n: T) {
companion object {
}
}
fun test() {
val a: Int = A.<caret>foo
}