Files
kotlin-fork/compiler/testData/diagnostics/tests/deprecated/deprecatedField.kt
T
Dmitrii Gridin 19dbe69651 [FIR] move deprecations calculation on TYPES phase
can be moved to COMPILER_REQUIRED_ANNOTATIONS phase in the future

^KT-57256 Fixed
2023-03-29 08:52:37 +00:00

15 lines
256 B
Kotlin
Vendored

// 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
}