why am I getting `Unresolved reference 'copy'.` in...
# getting-started
f
g
Because
Result
is not a data class. Thus, it doesn't have a
copy
method.
f
Make sense. In this case is it possible to get the inner data class??
d
Not without casting. For what its worth, this doesn't seem like a good pattern. Using subclasses for this will complicate things. You can try it this way, depending on what your goal is.
f
Sounds good for me, thank you so far