Prohibit using DeprecatedSinceKotlin annotation without arguments

This commit is contained in:
Mikhail Zarechenskiy
2020-06-18 11:36:38 +03:00
parent 67100d5ebe
commit 790433984b
5 changed files with 19 additions and 3 deletions
@@ -0,0 +1,7 @@
@Deprecated("")
@DeprecatedSinceKotlin
fun foo() {}
fun test() {
foo()
}
@@ -1,7 +1,5 @@
// FIR_IDENTICAL
@Deprecated("")
@DeprecatedSinceKotlin
@<!DEPRECATED_SINCE_KOTLIN_WITHOUT_ARGUMENTS!>DeprecatedSinceKotlin<!>
fun foo() {}
fun test() {