[FIR] Don't resolve Enum.declaringClass and Enum.getDeclaringClass
^KT-53946 Fixed
This commit is contained in:
committed by
Space Team
parent
6e76978530
commit
8883de3f00
@@ -1,4 +1,7 @@
|
||||
// TARGET_BACKEND: JVM
|
||||
// IGNORE_BACKEND_K2: JVM_IR
|
||||
// K2 status: declaringClass is error for enums since Kotlin 1.9
|
||||
|
||||
package test
|
||||
|
||||
enum class KEnum { A }
|
||||
@@ -10,4 +13,4 @@ fun test(e: KEnum): String {
|
||||
fun box(): String {
|
||||
val result = test(KEnum.A)
|
||||
return if (result == "class test.KEnum") "OK" else "fail: $result"
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user