Display missing extra bits for multi-bit flags #315
Labels
No labels
bug
good first issue
No milestone
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
gh-bitflags/bitflags#315
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
See: https://github.com/bitflags/bitflags/issues/310#issuecomment-1470122112
Given a flags type with two flags,
BIT = 0b0000_0001andMASK = 0b0001_1110, formatting the value3should result inBIT | 0x2, but instead it givesBIT. That extra bit gets lost, so doesn't roundtrip. The problem seems to be in the generatediter_namesmethod.