JVM IR: do not erase static fields in annotation classes
This commit is contained in:
@@ -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"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user