We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
const WIDTH = u32:2; type Val = uN[WIDTH]; fn test(val: Val) -> (bool, bool) { match val { Val:0 => (true, true), Val:1 => (true, false), _ => (false, false), } }
Here, val is an actual value rather than enum.
val
match val { uN[WIDTH]:0 => (true, true), uN[WIDTH]:1 => (true, false), _ => (false, false), }
Let compiler figure out that Val:0 is equivalent to uN[WIDTH]:0
Val:0
uN[WIDTH]:0
The text was updated successfully, but these errors were encountered:
No branches or pull requests
What's hard to do? (limit 100 words)
Here,
val
is an actual value rather than enum.Current best alternative workaround (limit 100 words)
Your view of the "best case XLS enhancement" (limit 100 words)
Let compiler figure out that
Val:0
is equivalent touN[WIDTH]:0
The text was updated successfully, but these errors were encountered: