Skip to content

Conversation

@snoire
Copy link
Contributor

@snoire snoire commented Oct 27, 2025

The {t} format specifier in Writer.print prints the tag name for enums and errors. However, it did not support enum literals, which caused an invalidFmtError when an enum literal was passed to it.

This simple change adds .enum_literal to the type check, allowing enum literals to be printed using their tag name, which makes the behavior consistent with other enum types.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant