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:
Vendored
+2
@@ -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) {}
|
||||
|
||||
+2
@@ -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)
|
||||
|
||||
+2
@@ -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 {
|
||||
|
||||
+2
@@ -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) {
|
||||
|
||||
+2
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user