[FIR] Don't resolve Enum.declaringClass and Enum.getDeclaringClass

^KT-53946 Fixed
This commit is contained in:
Ivan Kochurkin
2022-11-10 19:43:00 +01:00
committed by Space Team
parent 6e76978530
commit 8883de3f00
29 changed files with 13 additions and 238 deletions
@@ -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"
}
}