Prohibit using DeprecatedSinceKotlin outside kotlin subpackage
This commit is contained in:
+1
@@ -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
@@ -1,5 +1,6 @@
|
||||
// "Replace with 'newFun()'" "true"
|
||||
|
||||
@Suppress("DEPRECATED_SINCE_KOTLIN_OUTSIDE_KOTLIN_SUBPACKAGE")
|
||||
@Deprecated("", ReplaceWith("newFun()"))
|
||||
@DeprecatedSinceKotlin(warningSince = "1.0")
|
||||
fun oldFun() {
|
||||
|
||||
Reference in New Issue
Block a user