[FIR] KT-57835: Prevent the compiler crash

^KT-57835 Fixed
This commit is contained in:
Nikolay Lunyak
2023-04-10 18:31:46 +03:00
committed by Space Team
parent e1c91ee50f
commit caa7bee917
7 changed files with 57 additions and 0 deletions
@@ -0,0 +1,18 @@
// FIR_IDENTICAL
// ISSUE: KT-57879
// TARGET_BACKEND: JVM_IR
// FILE: CoreBundle.java
public class CoreBundle {
public static final String BUNDLE = "OK";
}
// FILE: main.kt
@Target(AnnotationTarget.TYPE)
annotation class AnnKlass(val argument: String)
fun message(key: @AnnKlass(CoreBundle.BUNDLE) String) = key
fun box() = message("OK")