[FIR2IR] Get rid of most of usages IrSymbol.owner from CallAndReferenceGenerator

^KT-60924
This commit is contained in:
Dmitriy Novozhilov
2023-08-17 15:36:54 +03:00
committed by Space Team
parent ff1c38872e
commit d847d00d6f
11 changed files with 244 additions and 131 deletions
@@ -0,0 +1,21 @@
// TARGET_BACKEND: JVM_IR
// WITH_STDLIB
// FULL_JDK
import java.util.EnumMap
enum class SomeEnum {
A, B
}
typealias SomeMap = EnumMap<SomeEnum, String>
fun test(oldMap: SomeMap, key: SomeEnum): String {
val newMap = oldMap.let(::SomeMap)
return newMap.getValue(key)
}
fun box(): String {
val map = EnumMap(mapOf(SomeEnum.A to "OK"))
return test(map, SomeEnum.A)
}