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

Allow ^ in constant numeric expressions #14951

Merged
merged 1 commit into from
Sep 3, 2024

Conversation

HertzDevil
Copy link
Contributor

@HertzDevil HertzDevil commented Aug 29, 2024

This operator was oddly missing even though | and & are already supported:

enum Foo
  A = 1 | 2 # okay
  B = 1 & 2 # okay
  C = 1 ^ 2 # Error: invalid constant value
end

@ysbaddaden ysbaddaden added this to the 1.14.0 milestone Sep 2, 2024
@straight-shoota straight-shoota merged commit 598931c into crystal-lang:master Sep 3, 2024
65 checks passed
@HertzDevil HertzDevil deleted the feature/const-xor branch September 4, 2024 04:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants