Hello! In ir transformation phase i need to add pr...
# compiler
p
Hello! In ir transformation phase i need to add private default setter to property if it is not exists (is val). For that case i can assign IrProperty.setter = to needed implementation. But after transformation java still generate final field and throw 'Update to non-static final field ... attempted from a different method (...) than the initializer method <init>' How can i make this work? I check IrProperty class and find out that it has isVar flag that is not correlate with availability of setter method. It is just final field initialized in constructor.
With reflection hack on BackingField.isFinal = false it works