Mercurial > projects > dang
annotate tests/code/basic_2.d @ 89:a49bb982a7b0 new_gen
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.
author | Anders Johnsen <skabet@gmail.com> |
---|---|
date | Sun, 04 May 2008 20:27:01 +0200 |
parents | 2d28b21faad6 |
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:
24
diff
changeset
|
1 //fail |
24 | 2 int main() |
3 { | |
4 int x = y; | |
5 int y = 1; | |
6 return y; | |
7 } | |
8 |