Update annotation rendering in diagnostics
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
This commit is contained in:
+18
@@ -0,0 +1,18 @@
|
||||
// !RENDER_DIAGNOSTICS_MESSAGES
|
||||
|
||||
@Target(AnnotationTarget.FUNCTION, AnnotationTarget.TYPE, AnnotationTarget.CLASS, AnnotationTarget.PROPERTY, AnnotationTarget.VALUE_PARAMETER)
|
||||
annotation class An
|
||||
|
||||
@An
|
||||
interface A {
|
||||
@An
|
||||
fun foo(@An a : @An Int)
|
||||
}
|
||||
|
||||
@An
|
||||
interface B {
|
||||
@An
|
||||
fun foo(@An b : @An Int)
|
||||
}
|
||||
|
||||
<!DIFFERENT_NAMES_FOR_THE_SAME_PARAMETER_IN_SUPERTYPES("public abstract fun foo(a: Int): Unit defined in A, public abstract fun foo(b: Int): Unit defined in B", "1")!>interface C<!> : A, B
|
||||
Reference in New Issue
Block a user