Prohibit using DeprecatedSinceKotlin outside kotlin subpackage

This commit is contained in:
Mikhail Zarechenskiy
2020-06-18 18:26:49 +03:00
parent 790433984b
commit a2da00eb49
33 changed files with 168 additions and 72 deletions
@@ -1,5 +1,6 @@
// "Replace with 'newFun()'" "true"
@Suppress("DEPRECATED_SINCE_KOTLIN_OUTSIDE_KOTLIN_SUBPACKAGE")
@Deprecated("", ReplaceWith("newFun()"))
@DeprecatedSinceKotlin(warningSince = "1.0")
fun oldFun() {
@@ -1,5 +1,6 @@
// "Replace with 'newFun()'" "true"
@Suppress("DEPRECATED_SINCE_KOTLIN_OUTSIDE_KOTLIN_SUBPACKAGE")
@Deprecated("", ReplaceWith("newFun()"))
@DeprecatedSinceKotlin(warningSince = "1.0")
fun oldFun() {