[Test] Update testdata of quickfix tests related to sealed classes
This commit is contained in:
@@ -5,7 +5,6 @@
|
||||
// ACTION: Create member function 'Foo.component2'
|
||||
// ACTION: Enable a trailing comma by default in the formatter
|
||||
// ACTION: Put arguments on separate lines
|
||||
// ERROR: Cannot access '<init>': it is private in 'Foo'
|
||||
// ERROR: Destructuring declaration initializer of type Foo must have a 'component1()' function
|
||||
// ERROR: Destructuring declaration initializer of type Foo must have a 'component2()' function
|
||||
// ERROR: Sealed types cannot be instantiated
|
||||
|
||||
+5
-4
@@ -4,9 +4,10 @@
|
||||
|
||||
sealed class Base {
|
||||
abstract fun foo(): Int
|
||||
class BaseImpl : Base() {
|
||||
override fun foo(): Int {
|
||||
TODO("Not yet implemented")
|
||||
}
|
||||
}
|
||||
|
||||
class BaseImpl : Base() {
|
||||
override fun foo(): Int {
|
||||
TODO("Not yet implemented")
|
||||
}
|
||||
}
|
||||
+2
-3
@@ -1,6 +1,5 @@
|
||||
// "Implement sealed class" "true"
|
||||
// SHOULD_BE_AVAILABLE_AFTER_EXECUTION
|
||||
|
||||
sealed class Sealed {
|
||||
class SealedImpl : Sealed()
|
||||
}
|
||||
sealed class Sealed
|
||||
class SealedImpl : Sealed()
|
||||
|
||||
@@ -8,10 +8,10 @@ sealed class Base {
|
||||
class BaseImpl : Base() {
|
||||
override fun foo() = throw UnsupportedOperationException()
|
||||
}
|
||||
}
|
||||
|
||||
class BaseImpl1 : Base() {
|
||||
override fun foo(): Int {
|
||||
TODO("Not yet implemented")
|
||||
}
|
||||
class BaseImpl : Base() {
|
||||
override fun foo(): Int {
|
||||
TODO("Not yet implemented")
|
||||
}
|
||||
}
|
||||
@@ -1,7 +1,6 @@
|
||||
// "Make '<init>' public" "false"
|
||||
// "Make '<init>' internal" "false"
|
||||
// ACTION: Introduce import alias
|
||||
// ERROR: Cannot access '<init>': it is private in 'SealedClass'
|
||||
// ERROR: This type is sealed, so it can be inherited by only its own nested classes or objects
|
||||
|
||||
sealed class SealedClass
|
||||
|
||||
Reference in New Issue
Block a user