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,13 @@
// "Replace with 'newFun()'" "true"
@Deprecated("", ReplaceWith("newFun()"))
@DeprecatedSinceKotlin(warningSince = "1.0")
fun oldFun() {
newFun()
}
fun newFun() {}
fun foo() {
<caret>oldFun()
}
@@ -0,0 +1,13 @@
// "Replace with 'newFun()'" "true"
@Deprecated("", ReplaceWith("newFun()"))
@DeprecatedSinceKotlin(warningSince = "1.0")
fun oldFun() {
newFun()
}
fun newFun() {}
fun foo() {
<caret>newFun()
}