[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:
committed by
Space Team
parent
f644eb7988
commit
19dbe69651
@@ -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
|
||||
}
|
||||
Reference in New Issue
Block a user