diff --git a/compiler/testData/diagnostics/tests/exposed/protectedInProtected.kt b/compiler/testData/diagnostics/tests/exposed/protectedInProtected.kt index ac326a36e6a..732b7aee411 100644 --- a/compiler/testData/diagnostics/tests/exposed/protectedInProtected.kt +++ b/compiler/testData/diagnostics/tests/exposed/protectedInProtected.kt @@ -11,3 +11,12 @@ open class A { } } +open class Owner { + protected open class A : Owner() { + protected open class ProtectedInA + } + + protected abstract class B : A() { + protected abstract fun foo(): ProtectedInA + } +} diff --git a/compiler/testData/diagnostics/tests/exposed/protectedInProtected.txt b/compiler/testData/diagnostics/tests/exposed/protectedInProtected.txt deleted file mode 100644 index dcc3ffa06f3..00000000000 --- a/compiler/testData/diagnostics/tests/exposed/protectedInProtected.txt +++ /dev/null @@ -1,33 +0,0 @@ -package - -public open class A { - public constructor A() - public open override /*1*/ /*fake_override*/ fun equals(/*0*/ other: kotlin.Any?): kotlin.Boolean - public open override /*1*/ /*fake_override*/ fun hashCode(): kotlin.Int - public open override /*1*/ /*fake_override*/ fun toString(): kotlin.String - - private interface B { - public open override /*1*/ /*fake_override*/ fun equals(/*0*/ other: kotlin.Any?): kotlin.Boolean - public open override /*1*/ /*fake_override*/ fun hashCode(): kotlin.Int - public open override /*1*/ /*fake_override*/ fun toString(): kotlin.String - } - - protected open class C { - public constructor C() - public open override /*1*/ /*fake_override*/ fun equals(/*0*/ other: kotlin.Any?): kotlin.Boolean - public open override /*1*/ /*fake_override*/ fun hashCode(): kotlin.Int - public open override /*1*/ /*fake_override*/ fun toString(): kotlin.String - - protected interface D : A.B { - public open override /*1*/ /*fake_override*/ fun equals(/*0*/ other: kotlin.Any?): kotlin.Boolean - public open override /*1*/ /*fake_override*/ fun hashCode(): kotlin.Int - public open override /*1*/ /*fake_override*/ fun toString(): kotlin.String - } - - internal interface E : A.B, A.C.D { - public open override /*2*/ /*fake_override*/ fun equals(/*0*/ other: kotlin.Any?): kotlin.Boolean - public open override /*2*/ /*fake_override*/ fun hashCode(): kotlin.Int - public open override /*2*/ /*fake_override*/ fun toString(): kotlin.String - } - } -}