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

Fix for bit_set[$T] proc params always being generated as i8 #3842

Merged
merged 1 commit into from
Jun 30, 2024

Conversation

karl-zylinski
Copy link
Contributor

@karl-zylinski karl-zylinski commented Jun 30, 2024

This PR makes types like bit_set[$T] have their upper and lower bits overwritten by upper/lower from the source type when checking if polymorphic type is assignable.

This fixes an issue where an i8 was always generated for bit_sets with generic elements, because it couldn't figure out upper/lower when check_bit_set_type was originally run, so the poly type has both upper and lower 0.

Fixes #2860

…en by upper/lower from the source types when checking if polymorphic type is assignable. This fixes an issue where an i8 was always generated for bit_sets with generic elements, because it couldn't figure out upper/lower when check_bit_set_type was run. Fixes odin-lang#2860
@Kelimion Kelimion merged commit efd933e into odin-lang:master Jun 30, 2024
6 checks passed
@karl-zylinski karl-zylinski deleted the fix-poly-bitset-size branch June 30, 2024 19:18
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.

Proc param of type bit_set[$T] where T is enum with more than 8 variants is broken
2 participants