Skip to content
New issue

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

Don't generate Equatable checking for computed properties #131

Merged
merged 2 commits into from
Dec 13, 2024

Conversation

bok-
Copy link
Contributor

@bok- bok- commented Dec 13, 2024

📒 Description

The @FlagContainer macro generates Equatable conformance by default for all properties, including computed properties. This is not consistent with how the compiler synthesises it. This PR changes the macro so we only generate comparisons for stored properties.

@bok- bok- added bug Something isn't working vexil3 Part of the Vexil 3 alpha/beta development labels Dec 13, 2024
@bok- bok- merged commit e117134 into main Dec 13, 2024
39 checks passed
@bok- bok- deleted the equatable-computed-properties branch December 13, 2024 11:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working vexil3 Part of the Vexil 3 alpha/beta development
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant