Reject values of DeprecatedSince.. that are not parseable as a version

This commit is contained in:
Mikhail Zarechenskiy
2020-06-18 11:21:55 +03:00
parent 5d88058928
commit 67100d5ebe
14 changed files with 131 additions and 45 deletions
@@ -1,27 +1,27 @@
// !API_VERSION: 1.4
@Deprecated("")
@DeprecatedSinceKotlin("", errorSince = "1.4")
@DeprecatedSinceKotlin(errorSince = "1.4")
class ClassCur
@Deprecated("")
@DeprecatedSinceKotlin("", errorSince = "1.4")
@DeprecatedSinceKotlin(errorSince = "1.4")
fun funCur() {}
@Deprecated("")
@DeprecatedSinceKotlin("", errorSince = "1.4")
@DeprecatedSinceKotlin(errorSince = "1.4")
val valCur = Unit
@Deprecated("")
@DeprecatedSinceKotlin("", errorSince = "1.5")
@DeprecatedSinceKotlin(errorSince = "1.5")
class ClassNext
@Deprecated("")
@DeprecatedSinceKotlin("", errorSince = "1.5")
@DeprecatedSinceKotlin(errorSince = "1.5")
fun funNext() {}
@Deprecated("")
@DeprecatedSinceKotlin("", errorSince = "1.5")
@DeprecatedSinceKotlin(errorSince = "1.5")
val valNext = Unit
fun usage() {