Files
kotlin-fork/compiler/testData/diagnostics/tests/annotations/rendering/cannotOverrideInvisibleMember.fir.kt
T
2021-07-08 18:13:47 +03:00

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