[Test] Reproduce KT-65937

This commit is contained in:
Dmitriy Novozhilov
2024-02-21 10:44:52 +02:00
committed by Space Team
parent cc2dcf0078
commit 3bf0a11ced
4 changed files with 55 additions and 4 deletions
@@ -1,5 +1,7 @@
// FIR_DUMP
// DUMP_IR
// WITH_STDLIB
// IGNORE_BACKEND_K2: ANY
annotation class Ann(@Ann(1) val e: Int)
@@ -14,4 +16,10 @@ public annotation class MyRequiresOptIn(
}
}
fun box() = "OK"
fun box(): String {
val result = MyRequiresOptIn.MyLevel.values().joinToString()
return when (result) {
"WARNING, ERROR" -> "OK"
else -> "Fail: $result"
}
}