Copy link
Copy Markdown
Contributor
What
- Display the variant name when more than one fields are present.
- Print an error when the variant has named fields.
Why
Improve usability.
I am also looking at expanding contracttype to support multiple fields and named fields, but won't get that done in the next few days.
Known limitations
na
Copy link
Copy Markdown
Contributor Author
I pushed one more commit that errors on enums with no variants. This case also currently emits syntax errors.
Copy link
Copy Markdown
Member
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
๐๐ป Thanks for fixing these cases where errors were lacking.