[FIR] Render deprecation message if it's not a named argument.

This commit is contained in:
Kirill Rakhman
2023-12-21 16:51:54 +01:00
committed by Space Team
parent 8aa32d9f45
commit 6b049df87c
9 changed files with 39 additions and 25 deletions
@@ -1,12 +1,16 @@
// FIR_IDENTICAL
// RENDER_DIAGNOSTICS_FULL_TEXT
// !DIAGNOSTICS: -UNUSED_PARAMETER
@Deprecated("alas", level = DeprecationLevel.ERROR)
fun foo() {}
fun foo(s: @Foo String) {}
@Deprecated("alas", level = DeprecationLevel.ERROR)
class C
fun test(c: <!DEPRECATION_ERROR!>C<!>) {
<!DEPRECATION_ERROR!>foo<!>()
<!DEPRECATION_ERROR!>foo<!>("")
<!DEPRECATION_ERROR!>C<!>()
}
}
@Target(AnnotationTarget.TYPE)
annotation class Foo