Files
kotlin-fork/idea/testData/quickfix/createFromUsage/createVariable/property/abstract/otherExplicitReceiver.kt
T
Mikhail Glukhikh d08b18f5f8 Introduce "use expression body" inspection #KT-16063 Fixed
Converted from the relevant intention
Reported cases: one-liners, whens
Also, more exact caret detection in local inspection tests
2017-07-07 18:15:06 +03:00

17 lines
366 B
Kotlin
Vendored

// "Create abstract property 'foo'" "false"
// ACTION: Create extension property 'B.foo'
// ACTION: Create member property 'B.foo'
// ACTION: Create property 'foo' as constructor parameter
// ACTION: Rename reference
// ERROR: Unresolved reference: foo
abstract class A {
fun bar(b: Boolean) {}
fun test() {
bar(B().<caret>foo)
}
}
class B {
}