[FIR] Render deprecation message if it's not a named argument.
This commit is contained in:
committed by
Space Team
parent
8aa32d9f45
commit
6b049df87c
@@ -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
|
||||
Reference in New Issue
Block a user