I decided to perform the check in analyze_enum() of each derive instead of in shared::analyze_derive().
Technically we can also support empty struct variants and empty tuple variants (that would require changing the derive codegen). For now I made unit variants a requirement.
Fixes #41.
I decided to perform the check in
analyze_enum()
of each derive instead of inshared::analyze_derive()
.Technically we can also support empty struct variants and empty tuple variants (that would require changing the derive codegen). For now I made unit variants a requirement.