Skip to content

Conversation

@hharkovenko
Copy link

When freezed union is created from enum that has name matching a keyword(in my case "default"), factory name is not protected as enum value. Keyword list also doesn't have dart types, that also can lead to errors with code gen(in my case I have a model with field called "int").

@Carapacik
Copy link
Owner

Please fix tests

@hharkovenko hharkovenko marked this pull request as draft November 20, 2025 15:04
@hharkovenko hharkovenko marked this pull request as ready for review November 20, 2025 15:05
@hharkovenko
Copy link
Author

Hi. @Carapacik as I understood the problem was in unformatted file, I fixed it.

@frederikstonge
Copy link

I believe I faced the same issue and found that in a case where enum has a list of name associated with it, no escape was done. #401

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.

3 participants