https://kotlinlang.org logo
#compose
Title
# compose
g

grandstaish

11/23/2020, 4:52 PM
if i’m trying to mark a
sealed class
hierarchy as
@Immutable
, should i annotate the base class, the subclasses, or both?
l

Leland Richardson [G]

11/23/2020, 4:53 PM
IIRC, the base class should be enough
👍 1
g

grandstaish

11/23/2020, 4:53 PM
thanks leland!
l

Leland Richardson [G]

11/23/2020, 4:53 PM
let me know if you observe otherwise!
👍 1
2 Views