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
Describe the bug
proc Foo { config() { } init { () } next(state: ()) { unroll_for! (i, _): (u32, ()) in u32:0..bar::N { let tok_ = join(); }(()); } }
where in bar module:
bar
pub const N = u32:32;
causes the error:
Expected 'identifier', got 'keyword:let': Expected struct instance's member name === Source Location Trace: === xls/dslx/frontend/bindings.h:59 xls/dslx/frontend/parser.cc:1079 ...
Removing the statement inside interestingly causes a different error:
Expected '{', got ';' === Source Location Trace: === xls/dslx/frontend/bindings.h:59 xls/dslx/frontend/token_parser.cc:102 xls/dslx/frontend/parser.cc:3499
To Reproduce
Run the above proc through the DSLX formatter or compile it.
Expected behavior This should work just as range(u32:0, bar::N) does.
range(u32:0, bar::N)
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Describe the bug
where in
bar
module:causes the error:
Removing the statement inside interestingly causes a different error:
To Reproduce
Run the above proc through the DSLX formatter or compile it.
Expected behavior
This should work just as
range(u32:0, bar::N)
does.The text was updated successfully, but these errors were encountered: