Files
kotlin-fork/compiler/testData/diagnostics/tests/annotations/rendering/cannotOverrideInvisibleMember.fir.kt
T
2023-03-29 08:51:48 +03:00

16 lines
314 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() {
<!NOTHING_TO_OVERRIDE("foo")!>override<!> fun foo() {}
}