Do inline/value classes need to be marked as `@Imm...
# compose
t
Do inline/value classes need to be marked as
@Immutable
when they wrap primitives, or is that implied?
z
Nothing needs to be annotated with stability annotations for correctness, they’re basically just optimization hints. But I think the compose compiler should be able to infer stability for value classes.
t
Great, thanks! Yeah, meant more along the lines of if one were to mark a regular data class as
@Immutable
, could that be omitted once converted to an inline value class.