Fix a bunch of IDE quick-fix tests (related to "convert to run/...")

These actions became available more often some days ago
This commit is contained in:
Mikhail Glukhikh
2019-02-25 10:37:07 +03:00
parent 4ef12b1ed7
commit c084eefb65
27 changed files with 56 additions and 0 deletions
@@ -3,6 +3,8 @@
// 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) {}
@@ -1,5 +1,7 @@
// "Create member function 'foo'" "false"
// ACTION: Rename reference
// ACTION: Convert to run
// ACTION: Convert to with
// ERROR: Unresolved reference: foo
class A<T>(val n: T)
@@ -1,6 +1,8 @@
// "Create member function 'foo'" "false"
// ACTION: Create extension function 'A.foo'
// ACTION: Rename reference
// ACTION: Convert to run
// ACTION: Convert to with
// ERROR: Unresolved reference: foo
fun test(): Int {
@@ -1,5 +1,7 @@
// "Create member function 'foo'" "false"
// ACTION: Add names to call arguments
// ACTION: Convert to run
// ACTION: Convert to with
// ERROR: Unresolved reference: x
class A<T>(val n: T) {
@@ -1,6 +1,8 @@
// "Create member function 'bar'" "false"
// ACTION: Create extension function 'T.bar'
// ACTION: Rename reference
// ACTION: Convert to run
// ACTION: Convert to with
// ERROR: Unresolved reference: bar
fun <T> foo(t: T) {
t.<caret>bar()