Closed debiotech4ayo closed 2 months ago
@Implements
is for unions, to have constructor implement an interface but not the others.
If you want the whole class to implement an interface, just use implements
However, it's not possible to make a freezed class extends another class, freezed or not, right ?
Correct, because there's no good syntax for the super
constructor.
I have some questions about inheritance / implementation with freezed after reading this part and testing a bit.
Does it make sense to mix
implements
keyword with@Implements
?implements
keyword permit me to retrieve the base class documentation.Additionally it seems we can use
implements
without@Implements
which could be counter-intuitive as missing@Implements
makes the generated code not adding theimplements Implemented
.Gives :
However, no error is raised.
I'm not sure to understand...