Files
kotlin/compiler/testData/diagnostics/tests/annotations/rendering/cannotOverrideInvisibleMember.fir.kt

15 lines
280 B
Kotlin
Vendored

// !DIAGNOSTICS: -INCOMPATIBLE_MODIFIERS
// !RENDER_DIAGNOSTICS_MESSAGES
@Target(AnnotationTarget.FUNCTION, AnnotationTarget.TYPE, AnnotationTarget.CLASS)
annotation class A
@A
open class B1 {
@A
private open fun foo() {}
}
class D1 : B1() {
override fun foo() {}
}