Files
kotlin-fork/compiler/testData/diagnostics/tests/deprecated/deprecatedSinceKotlin/error.kt
T
Andrey Zinovyev de3f31cf78 [FIR] Partial implementation of DEPRECATION(_ERROR) diagnostics
No support for inheritance deprecations
and deprecations in qualifier's parts
2021-07-07 16:19:28 +03:00

39 lines
686 B
Kotlin
Vendored

// FIR_IDENTICAL
// !API_VERSION: 1.4
package kotlin
@Deprecated("")
@DeprecatedSinceKotlin(errorSince = "1.4")
class ClassCur
@Deprecated("")
@DeprecatedSinceKotlin(errorSince = "1.4")
fun funCur() {}
@Deprecated("")
@DeprecatedSinceKotlin(errorSince = "1.4")
val valCur = Unit
@Deprecated("")
@DeprecatedSinceKotlin(errorSince = "1.5")
class ClassNext
@Deprecated("")
@DeprecatedSinceKotlin(errorSince = "1.5")
fun funNext() {}
@Deprecated("")
@DeprecatedSinceKotlin(errorSince = "1.5")
val valNext = Unit
fun usage() {
<!DEPRECATION_ERROR!>ClassCur<!>()
<!DEPRECATION_ERROR!>funCur<!>()
<!DEPRECATION_ERROR!>valCur<!>
ClassNext()
funNext()
valNext
}