kopykat-kt / kopykat

Little utilities for more pleasant immutable data in Kotlin
Other
283 stars 16 forks source link

Copy from parent interface #59

Closed serras closed 2 years ago

serras commented 2 years ago

Implements the discussion of #55

pablisco commented 2 years ago

Should we limit this to data and value types?

I think we could lower the requirement to extend from an interface that has, at least one property and the subject type has an accessible constructor (i.e. internal or public, using the same for the generated function)

serras commented 2 years ago

Good point! Let me change the requirements.

serras commented 2 years ago

@pablisco it now generates the copy over all possible classes that fit the requirements