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
This class of error may go away entirely once we have implemented the abstract number types. But just in case:
fn f(u: u32) { switch (u) { case 1: { return; } default: { return; } } }
produces:
error: expected unsigned/signed integer literal, found '1' ┌─ switch.wgsl:3:11 │ 3 │ case 1: { return; } │ ^ expected unsigned/signed integer literal Could not parse WGSL
1 is definitely an "unsigned/signed integer literal".
1
Changing it to case 1u: causes validation to succeed.
case 1u:
The text was updated successfully, but these errors were encountered:
closing as duplicate of #1996
Sorry, something went wrong.
No branches or pull requests
This class of error may go away entirely once we have implemented the abstract number types. But just in case:
produces:
1
is definitely an "unsigned/signed integer literal".Changing it to
case 1u:
causes validation to succeed.The text was updated successfully, but these errors were encountered: