Create from Usage: Implement 'Create property as constructor parameter' quick-fix
#KT-8426 Fixed
This commit is contained in:
Vendored
+14
@@ -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
|
||||
}
|
||||
Reference in New Issue
Block a user