-
Notifications
You must be signed in to change notification settings - Fork 7
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
Support switch-case with fall throughs #68
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is great. In subsequent PR can you please add a verify check to ensure that if enable_fall_through=false
, then all fall_through=false
? I think that's the only requirement at the ASR level.
} | ||
require(fall_through == x.m_enable_fall_through, | ||
"Select_t::m_enable_fall_through should be " + | ||
std::to_string(x.m_enable_fall_through)); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That's an even stronger requirement, which is fine. It's always good to start strong, and relax later if needed, than the other way round.
Closes #46