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

@bitflags is too permissive with input expressions #12

Closed
Seelengrab opened this issue Jun 20, 2023 · 0 comments
Closed

@bitflags is too permissive with input expressions #12

Seelengrab opened this issue Jun 20, 2023 · 0 comments
Labels
bug Something isn't working

Comments

@Seelengrab
Copy link
Owner

Due to refactoring @bitflags to use the same backend as @bitfield, the following doesn't error anymore:

julia> @bitflags struct Foo
           a:2
           _
           b
       end

and produces a Foo with two fields, breaking the invariant that the non-padding fields of a @bitflags object are always a single bit wide.

@Seelengrab Seelengrab added the bug Something isn't working label Jun 20, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant