brson ยท GitHub

@brson

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

@brson

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.

leighmcculloch

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.

@leighmcculloch

@leighmcculloch

Read the original on github.com โ†—