Files
kotlin-fork/idea/testData/quickfix/createFromUsage/createVariable/property/abstract/notAbstractClass.kt
T
Alexey Sedunov 49b6811b44 Create from Usage: Support "Create abstract function/property" inside an abstract class
#KT-7492 Fixed
(cherry picked from commit 75f6b7f)
2016-07-20 15:39:07 +03:00

15 lines
396 B
Kotlin
Vendored

// "Create abstract property 'foo'" "false"
// ACTION: Convert to expression body
// ACTION: Create local variable 'foo'
// ACTION: Create parameter 'foo'
// ACTION: Create property 'foo'
// ACTION: Create property 'foo' as constructor parameter
// ACTION: Rename reference
// ERROR: Unresolved reference: foo
class A {
fun bar(b: Boolean) {}
fun test() {
bar(<caret>foo)
}
}