blob: 64d01b401646b73508ff6410bff38da6f934ce7d [file]
// RUN_PIPELINE_TILL: FRONTEND
class My(protected val x: Int) {
class Her(protected val x: Int)
inner class Its(protected val x: Int)
}
object Your {
<!WRONG_MODIFIER_CONTAINING_DECLARATION!>protected<!> fun foo() = 3
}
annotation class His(<!WRONG_MODIFIER_CONTAINING_DECLARATION!>protected<!> val x: Int)
enum class Our(protected val x: Int) {
FIRST(42) {
<!WRONG_MODIFIER_CONTAINING_DECLARATION!>protected<!> fun foo() = 13
}
}
interface Their {
<!WRONG_MODIFIER_CONTAINING_DECLARATION!>protected<!> fun foo() = 7
}
/* GENERATED_FIR_TAGS: annotationDeclaration, classDeclaration, enumDeclaration, enumEntry, functionDeclaration, inner,
integerLiteral, interfaceDeclaration, nestedClass, objectDeclaration, primaryConstructor, propertyDeclaration */