[FIR] Partial implementation of DEPRECATION(_ERROR) diagnostics

No support for inheritance deprecations
and deprecations in qualifier's parts
This commit is contained in:
Andrey Zinovyev
2021-06-23 15:25:23 +03:00
committed by teamcityserver
parent 9fad55d551
commit de3f31cf78
188 changed files with 984 additions and 1052 deletions
@@ -1,37 +0,0 @@
// !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() {
ClassCur()
funCur()
valCur
ClassNext()
funNext()
valNext
}
@@ -1,3 +1,4 @@
// FIR_IDENTICAL
// !API_VERSION: 1.4
package kotlin
@@ -27,9 +27,9 @@ fun funNext() {}
val valNext = Unit
fun usage() {
ClassCur()
<!DEPRECATION_ERROR!>ClassCur<!>()
<!INVISIBLE_REFERENCE!>funCur<!>()
valCur
<!INVISIBLE_REFERENCE!>valCur<!>
ClassNext()
funNext()
@@ -5,5 +5,5 @@ package kotlin
fun foo() {}
fun test() {
foo()
<!DEPRECATION!>foo<!>()
}
@@ -1,37 +0,0 @@
// !API_VERSION: 1.4
package kotlin
@Deprecated("")
@DeprecatedSinceKotlin(warningSince = "1.4")
class ClassCur
@Deprecated("")
@DeprecatedSinceKotlin(warningSince = "1.4")
fun funCur() {}
@Deprecated("")
@DeprecatedSinceKotlin(warningSince = "1.4")
val valCur = Unit
@Deprecated("")
@DeprecatedSinceKotlin(warningSince = "1.5")
class ClassNext
@Deprecated("")
@DeprecatedSinceKotlin(warningSince = "1.5")
fun funNext() {}
@Deprecated("")
@DeprecatedSinceKotlin(warningSince = "1.5")
val valNext = Unit
fun usage() {
ClassCur()
funCur()
valCur
ClassNext()
funNext()
valNext
}
@@ -1,3 +1,4 @@
// FIR_IDENTICAL
// !API_VERSION: 1.4
package kotlin