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,23 @@
@Deprecated("")
@DeprecatedSinceKotlin(warningSince = "1.0")
fun test1() {}
@Deprecated("")
@DeprecatedSinceKotlin(warningSince = "1.9")
fun test2() {}
@Deprecated("")
@DeprecatedSinceKotlin
fun test3() {}
// TESTED_OBJECT_KIND: function
// TESTED_OBJECTS: DeprecatedSinceKotlinKt, test1
// FLAGS: ACC_DEPRECATED, ACC_PUBLIC, ACC_FINAL, ACC_STATIC
// TESTED_OBJECT_KIND: function
// TESTED_OBJECTS: DeprecatedSinceKotlinKt, test2
// FLAGS: ACC_DEPRECATED, ACC_PUBLIC, ACC_FINAL, ACC_STATIC
// TESTED_OBJECT_KIND: function
// TESTED_OBJECTS: DeprecatedSinceKotlinKt, test3
// FLAGS: ACC_DEPRECATED, ACC_PUBLIC, ACC_FINAL, ACC_STATIC