Wiki

root/cobra/trunk/Tests/100-basics/404-branch-errors.cobra

Revision 2272, 125 bytes (checked in by Chuck.Esterbrook, 2 years ago)

Improved error checking for branch statement.

  • Property svn:eol-style set to native
Line 
1class P
2
3    def main
4        i = 1
5        branch i
6            on 1, pass
7            on 2, pass
8            on 1, pass  # .error. Branch case "1" was already used.
Note: See TracBrowser for help on using the browser.