Files
kotlin/idea/testData/quickfix/createFromUsage/createFunction/call/abstract/notAbstractClass.kt
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

11 lines
235 B
Kotlin
Vendored

// "Create abstract function 'foo'" "false"
// ACTION: Create function 'foo'
// ACTION: Rename reference
// ERROR: Unresolved reference: foo
class A {
fun bar(b: Boolean) {}
fun test() {
bar(<caret>foo(1, "2"))
}
}