Add various test for DeprecatedSinceKotlin annotation

This commit is contained in:
Mikhail Zarechenskiy
2020-06-17 19:37:44 +03:00
parent 0f2c96c64d
commit 2f55a3fa0d
14 changed files with 125 additions and 0 deletions
@@ -0,0 +1,9 @@
// FIR_IDENTICAL
@Deprecated("")
@DeprecatedSinceKotlin
fun foo() {}
fun test() {
foo()
}
@@ -0,0 +1,4 @@
package
@kotlin.Deprecated(message = "") @kotlin.DeprecatedSinceKotlin public fun foo(): kotlin.Unit
public fun test(): kotlin.Unit
@@ -0,0 +1,7 @@
@Deprecated("foo test")
@DeprecatedSinceKotlin(warningSince = "1.0")
fun foo() {}
fun test() {
foo()
}
@@ -0,0 +1,7 @@
@Deprecated("foo test")
@DeprecatedSinceKotlin(warningSince = "1.0")
fun foo() {}
fun test() {
<!DEPRECATION("foo(): Unit", "foo test")!>foo<!>()
}
@@ -0,0 +1,4 @@
package
@kotlin.Deprecated(message = "foo test") @kotlin.DeprecatedSinceKotlin(warningSince = "1.0") public fun foo(): kotlin.Unit
public fun test(): kotlin.Unit