We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
When a type is used in 2 Go enums, the schema has that type missing from one of the enums. It's non-deterministic which enum loses.
//ftl:enum type Animal interface{ animal() } type Lion struct{} type Dog struct{} func (Lion) animal() {} func (Dog) animal() {} //ftl:enum type Pet interface{ pet() } type Cat struct{} func (Cat) pet() {} func (Dog) pet() {}
Will create either of these schemas:
export enum Animal { Lion example.Lion Dog example.Dog } export enum Pet { Cat example.Cat }
☝️ Pet.Dog is missing
or:
export enum Animal { Lion example.Lion } export enum Pet { Cat example.Cat Dog example.Dog }
☝️ Animal.Dog is missing
The text was updated successfully, but these errors were encountered:
No branches or pull requests
When a type is used in 2 Go enums, the schema has that type missing from one of the enums. It's non-deterministic which enum loses.
Will create either of these schemas:
☝️ Pet.Dog is missing
or:
☝️ Animal.Dog is missing
The text was updated successfully, but these errors were encountered: