[FIR] Improve annotation use-site target rendring for diagnostics
#KT-62816 Fixed
This commit is contained in:
committed by
Space Team
parent
8f3f72d9c9
commit
5d3738c804
@@ -7,10 +7,15 @@ fun foo(s: @Foo String) {}
|
||||
@Deprecated("alas", level = DeprecationLevel.ERROR)
|
||||
class C
|
||||
|
||||
@field:Foo
|
||||
@Deprecated("alas", level = DeprecationLevel.ERROR)
|
||||
val bar: Int = 42
|
||||
|
||||
fun test(c: <!DEPRECATION_ERROR!>C<!>) {
|
||||
<!DEPRECATION_ERROR!>foo<!>("")
|
||||
<!DEPRECATION_ERROR!>C<!>()
|
||||
<!DEPRECATION_ERROR!>bar<!>
|
||||
}
|
||||
|
||||
@Target(AnnotationTarget.TYPE)
|
||||
@Target(AnnotationTarget.TYPE, AnnotationTarget.FIELD)
|
||||
annotation class Foo
|
||||
Reference in New Issue
Block a user