diff --git a/idea/testData/quickfix/addDataModifier/sealed.kt b/idea/testData/quickfix/addDataModifier/sealed.kt index ef37181f075..9ed02042cc2 100644 --- a/idea/testData/quickfix/addDataModifier/sealed.kt +++ b/idea/testData/quickfix/addDataModifier/sealed.kt @@ -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 '': 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 @@ -13,4 +12,4 @@ sealed class Foo(val bar: String, val baz: Int) fun test() { var (bar, baz) = Foo("A", 1) -} \ No newline at end of file +} diff --git a/idea/testData/quickfix/implement/sealed.kt b/idea/testData/quickfix/implement/sealed.kt index 1d360339ce5..3d0e38a10ac 100644 --- a/idea/testData/quickfix/implement/sealed.kt +++ b/idea/testData/quickfix/implement/sealed.kt @@ -4,4 +4,4 @@ sealed class Base { abstract fun foo(): Int -} \ No newline at end of file +} diff --git a/idea/testData/quickfix/implement/sealed.kt.after b/idea/testData/quickfix/implement/sealed.kt.after index b380f48a2cf..98b985363e4 100644 --- a/idea/testData/quickfix/implement/sealed.kt.after +++ b/idea/testData/quickfix/implement/sealed.kt.after @@ -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") } -} \ No newline at end of file +} diff --git a/idea/testData/quickfix/implement/sealedEmpty.kt b/idea/testData/quickfix/implement/sealedEmpty.kt index b10b62726d4..4a13b1c0f3d 100644 --- a/idea/testData/quickfix/implement/sealedEmpty.kt +++ b/idea/testData/quickfix/implement/sealedEmpty.kt @@ -1,4 +1,4 @@ // "Implement sealed class" "true" // SHOULD_BE_AVAILABLE_AFTER_EXECUTION -sealed class Sealed \ No newline at end of file +sealed class Sealed diff --git a/idea/testData/quickfix/implement/sealedEmpty.kt.after b/idea/testData/quickfix/implement/sealedEmpty.kt.after index 4b1bee41ba0..3cc5436491e 100644 --- a/idea/testData/quickfix/implement/sealedEmpty.kt.after +++ b/idea/testData/quickfix/implement/sealedEmpty.kt.after @@ -1,6 +1,5 @@ // "Implement sealed class" "true" // SHOULD_BE_AVAILABLE_AFTER_EXECUTION -sealed class Sealed { - class SealedImpl : Sealed() -} \ No newline at end of file +sealed class Sealed +class SealedImpl : Sealed() diff --git a/idea/testData/quickfix/implement/sealedWithConflict.kt b/idea/testData/quickfix/implement/sealedWithConflict.kt index 8b89b7c6278..e133256f526 100644 --- a/idea/testData/quickfix/implement/sealedWithConflict.kt +++ b/idea/testData/quickfix/implement/sealedWithConflict.kt @@ -8,4 +8,4 @@ sealed class Base { class BaseImpl : Base() { override fun foo() = throw UnsupportedOperationException() } -} \ No newline at end of file +} diff --git a/idea/testData/quickfix/implement/sealedWithConflict.kt.after b/idea/testData/quickfix/implement/sealedWithConflict.kt.after index bbe48e11cb9..94defff9863 100644 --- a/idea/testData/quickfix/implement/sealedWithConflict.kt.after +++ b/idea/testData/quickfix/implement/sealedWithConflict.kt.after @@ -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") } -} \ No newline at end of file +} diff --git a/idea/testData/quickfix/increaseVisibility/invalidSealedClassInheritance.kt b/idea/testData/quickfix/increaseVisibility/invalidSealedClassInheritance.kt index a2a6b53aef5..f03c0682797 100644 --- a/idea/testData/quickfix/increaseVisibility/invalidSealedClassInheritance.kt +++ b/idea/testData/quickfix/increaseVisibility/invalidSealedClassInheritance.kt @@ -1,11 +1,10 @@ // "Make '' public" "false" // "Make '' internal" "false" // ACTION: Introduce import alias -// ERROR: Cannot access '': 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 fun test() { class Test : SealedClass() -} \ No newline at end of file +}