I'm trying to implement a compiler plugin to conve...
# compiler
s
I'm trying to implement a compiler plugin to convert code from
Copy code
@Repr
value class DateT {

}
to
Copy code
@JvmInline
value class DateT(val repr: REPR) {

}
I've successfully implement the add @JvmInline annotation, and adding a value parameter in constructor, but I'm having trouble declaring the val repr. Should I do it in fir generation? or fir transform? I got VALUE_CLASS_CONSTRUCTOR_NOT_FINAL_READ_ONLY_PARAMETER, did I miss something, how do I properly create a property in Fir so it is a correct inline value class?