Files
kotlin-fork/idea/testData/quickfix/createFromUsage/createFunction/call/abstract/otherExplicitReceiver.kt
T
Mikhail Glukhikh c084eefb65 Fix a bunch of IDE quick-fix tests (related to "convert to run/...")
These actions became available more often some days ago
2019-02-25 10:37:46 +03:00

19 lines
402 B
Kotlin
Vendored

// "Create abstract function 'foo'" "false"
// ACTION: Create extension function 'B.foo'
// ACTION: Create member function 'B.foo'
// ACTION: Rename reference
// ACTION: Add 'b =' to argument
// ACTION: Convert to run
// ACTION: Convert to with
// ERROR: Unresolved reference: foo
abstract class A {
fun bar(b: Boolean) {}
fun test() {
bar(B().<caret>foo(1, "2"))
}
}
class B {
}