Skip to content
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

compiler: implement switch statement #628

Closed
4 tasks done
fyrchik opened this issue Jan 29, 2020 · 0 comments · Fixed by #738
Closed
4 tasks done

compiler: implement switch statement #628

fyrchik opened this issue Jan 29, 2020 · 0 comments · Fixed by #738
Assignees
Labels
compiler Go smart contract compiler
Milestone

Comments

@fyrchik
Copy link
Contributor

fyrchik commented Jan 29, 2020

Implement switch statement. Type-switches are probably of no use in smart-contract.

  • basic switch statement
  • multiple expressions in case
  • support fallthrough
  • support break
roman-khimov added a commit that referenced this issue Jan 29, 2020
compiler: implement switch statement support

Implements 1 & 2 from #628.
roman-khimov added a commit that referenced this issue Feb 21, 2020
compiler: support break statement in for loops and switch statements

Closes #677.
Implements 4-th point from #628.
@roman-khimov roman-khimov added this to the v0.74.0 milestone Mar 10, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
compiler Go smart contract compiler
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants