JVM IR: do not erase static fields in annotation classes

This commit is contained in:
Alexander Udalov
2020-01-23 18:40:11 +01:00
parent 00de5dae32
commit 19b516cbf4
2 changed files with 4 additions and 4 deletions
@@ -2,7 +2,6 @@
// IGNORE_BACKEND_FIR: JVM_IR
// WITH_RUNTIME
// TARGET_BACKEND: JVM
// IGNORE_BACKEND: JVM_IR
// FILE: Foo.java
@Anno(Anno.CONST)
@@ -18,4 +17,3 @@ annotation class Anno(val value: Int) {
fun box(): String =
if ((Foo::class.java.annotations.single() as Anno).value == 42) "OK" else "Fail"