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
|
||||
Reference in New Issue
Block a user