Mercurial > projects > dang
annotate tests/code/switch_6.d @ 150:6c5a3c0bb4fb
Make switch work again
Also added locations to statements (only filled out for switch)
Added a verification pass
Removed some comments
author | Anders Halager <halager@gmail.com> |
---|---|
date | Mon, 21 Jul 2008 20:35:03 +0200 |
parents | a49bb982a7b0 |
children |
rev | line source |
---|---|
89
a49bb982a7b0
Using the new SourceLocation system to handle errors. Also, this is the first push for making the errors don't throw, but continue to check the source.
Anders Johnsen <skabet@gmail.com>
parents:
38
diff
changeset
|
1 //fail |
38 | 2 int main(int x) |
3 { | |
4 switch (x) | |
5 { | |
6 case 1, 2: | |
7 return 0; | |
8 case 2, 3: | |
9 return 1; | |
150 | 10 case 1, 3: |
11 return 1; | |
38 | 12 } |
13 } | |
14 |