Skip to content

Conversation

@usha1830
Copy link
Owner

No description provided.

Copy link
Collaborator

@psivanup psivanup left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

looks fine

if (auto cst = c->label->to<IR::Constant>()) {
auto it = caselabels.find(cst->value);
if (it != caselabels.end()) {
typeError("%1%: 'switch' label duplicates %2%", c->label, it->second);
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why switch in single quote?

Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Similar to the error message for switch with action_run expression

@usha1830 usha1830 marked this pull request as draft January 20, 2023 11:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants