https://kotlinlang.org logo
#compiler
Title
# compiler
p

PHondogo

09/10/2022, 12:08 PM
Hello! How can i change IrField from val to var during transformation by compiler plugin? isFinal property of IrField is readonly.
m

mcpiroman

09/10/2022, 12:14 PM
p

PHondogo

09/10/2022, 1:22 PM
Seems unreasonably complicated. I'm using reflection now. Wonder why not just make IrField::isVar settable.
4 Views