0aaf29c045
This annotation will be used in the standard library to prevent the new compiler from reporting deprecation diagnostics in case an older API version is used (where the declaration was not deprecated yet). #KT-23575 Fixed
30 lines
575 B
Kotlin
Vendored
30 lines
575 B
Kotlin
Vendored
// !API_VERSION: 1.3
|
|
|
|
@DeprecatedSinceKotlin("", warningSince = "1.3")
|
|
class ClassCur
|
|
|
|
@DeprecatedSinceKotlin("", warningSince = "1.3")
|
|
fun funCur() {}
|
|
|
|
@DeprecatedSinceKotlin("", warningSince = "1.3")
|
|
val valCur = Unit
|
|
|
|
@DeprecatedSinceKotlin("", warningSince = "1.4")
|
|
class ClassNext
|
|
|
|
@DeprecatedSinceKotlin("", warningSince = "1.4")
|
|
fun funNext() {}
|
|
|
|
@DeprecatedSinceKotlin("", warningSince = "1.4")
|
|
val valNext = Unit
|
|
|
|
fun usage() {
|
|
<!DEPRECATION!>ClassCur<!>()
|
|
<!DEPRECATION!>funCur<!>()
|
|
<!DEPRECATION!>valCur<!>
|
|
|
|
ClassNext()
|
|
funNext()
|
|
valNext
|
|
}
|