b7e5d9faae
Disable annotation rendering in default type and descriptor renderers. Preserve annotations in Android and Serialization plugins. Update error texts in ide tests. Nullability annotations in Java descriptors are rendered with context-dependent renderer. #KT-20258 Fixed
15 lines
410 B
Kotlin
Vendored
15 lines
410 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() {
|
|
<!CANNOT_OVERRIDE_INVISIBLE_MEMBER("public open fun foo(): Unit defined in D1", "private open fun foo(): Unit defined in B1")!>override<!> fun foo() {}
|
|
} |