[FIR] move deprecations calculation on TYPES phase

can be moved to COMPILER_REQUIRED_ANNOTATIONS phase in the future

^KT-57256 Fixed
This commit is contained in:
Dmitrii Gridin
2023-03-28 17:47:50 +02:00
committed by Space Team
parent f644eb7988
commit 19dbe69651
10 changed files with 103 additions and 13 deletions
@@ -0,0 +1,14 @@
// FIR_IDENTICAL
// FILE: A.kt
enum class A {
@Deprecated("")
DeprecatedEntry,
RegularEntry
}
// FILE: use.kt
fun use() {
A.<!DEPRECATION!>DeprecatedEntry<!>
A.RegularEntry
}
@@ -0,0 +1,14 @@
// FIR_IDENTICAL
// FILE: JavaClass.java
public class JavaClass {
@Deprecated
public int deprecatedField = 4;
public int regularField = 5;
}
// FILE: use.kt
fun use(j: JavaClass) {
j.<!DEPRECATION!>deprecatedField<!>
j.regularField
}