Added tests for KT-4870 "Change to constructor invocation" quick fix doesn't work
for local classes, objects and object expressions #KT-4870 Obsolete
This commit is contained in:
+5
@@ -0,0 +1,5 @@
|
||||
// "Change to constructor invocation" "true"
|
||||
fun bar() {
|
||||
abstract class Foo {}
|
||||
class A : Foo() {}
|
||||
}
|
||||
+5
@@ -0,0 +1,5 @@
|
||||
// "Change to constructor invocation" "true"
|
||||
fun bar() {
|
||||
abstract class Foo {}
|
||||
val foo: Foo = object : Foo() {}
|
||||
}
|
||||
+5
@@ -0,0 +1,5 @@
|
||||
// "Change to constructor invocation" "true"
|
||||
fun bar() {
|
||||
abstract class Foo {}
|
||||
class A : <caret>Foo {}
|
||||
}
|
||||
+5
@@ -0,0 +1,5 @@
|
||||
// "Change to constructor invocation" "true"
|
||||
fun bar() {
|
||||
abstract class Foo {}
|
||||
val foo: Foo = object : <caret>Foo {}
|
||||
}
|
||||
Reference in New Issue
Block a user