why am i getting this when the var is internal?
# announcements
m
why am i getting this when the var is internal?
s
the constructor is still public though
exposing the reliance on an internal type
m
oh okay, so i need to make the constructor internal
and have a secondary public constructor
s
that’d be one way to do it, yes 👍
m
thank you!
z
Although even then, because this is a data class, this type will still be exposed in the
copy
method. You sure it needs to be a data class?
👆 1
m
i'll need to look into it