Add various test for DeprecatedSinceKotlin annotation
This commit is contained in:
+9
@@ -0,0 +1,9 @@
|
||||
// FIR_IDENTICAL
|
||||
|
||||
@Deprecated("")
|
||||
@DeprecatedSinceKotlin
|
||||
fun foo() {}
|
||||
|
||||
fun test() {
|
||||
foo()
|
||||
}
|
||||
+4
@@ -0,0 +1,4 @@
|
||||
package
|
||||
|
||||
@kotlin.Deprecated(message = "") @kotlin.DeprecatedSinceKotlin public fun foo(): kotlin.Unit
|
||||
public fun test(): kotlin.Unit
|
||||
+7
@@ -0,0 +1,7 @@
|
||||
@Deprecated("foo test")
|
||||
@DeprecatedSinceKotlin(warningSince = "1.0")
|
||||
fun foo() {}
|
||||
|
||||
fun test() {
|
||||
foo()
|
||||
}
|
||||
+7
@@ -0,0 +1,7 @@
|
||||
@Deprecated("foo test")
|
||||
@DeprecatedSinceKotlin(warningSince = "1.0")
|
||||
fun foo() {}
|
||||
|
||||
fun test() {
|
||||
<!DEPRECATION("foo(): Unit", "foo test")!>foo<!>()
|
||||
}
|
||||
+4
@@ -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
|
||||
+23
@@ -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
|
||||
Reference in New Issue
Block a user