Michal Janos
03/17/2023, 10:07 AMinternal actual fun Any.getFieldValue(fieldName: String): Any? {
val thisDynamic: dynamic = this
return thisDynamic[fieldName]
}
this works well on LEGACY, but on IR it return undefined.
I try to play with that and thisDynamic[fieldName+"_1"]
return right value, but I don't think this is safe solution.
This is any class, where I want to find value by string.
Is there any idea how to do it in IR?Robert Jaros
03/17/2023, 10:30 AMMichal Janos
03/17/2023, 10:40 AMRobert Jaros
03/17/2023, 11:22 AM