Mercurial > projects > dstress
annotate compile/bug_cgcod_1445_C.d @ 1618:87a6ab8f478d
Returns of non-void expressions are no longer valid in void functions.
author | Christian Kamm <kamm incasoftware de> |
---|---|
date | Sat, 07 Nov 2009 18:48:11 +0100 |
parents | b8c0195059d9 |
children |
rev | line source |
---|---|
756 | 1 // $HeadURL$ |
2 // $Date$ | |
3 // $Author$ | |
511 | 4 |
5 // @author@ David Medlock <amedlock@nospam.org> | |
6 // @date@ 2005-05-04 | |
1489 | 7 // @uri@ http://www.digitalmars.com/pnews/read.php?server=news.digitalmars.com&group=digitalmars.D.bugs&artnum=3886 |
511 | 8 |
9 module dstress.compile.bug_cgcod_1445_C; | |
10 | |
11 static int[1][5] array = [[1],[2],[3],[4],[5] ]; | |
12 | |
1618
87a6ab8f478d
Returns of non-void expressions are no longer valid in void functions.
Christian Kamm <kamm incasoftware de>
parents:
1489
diff
changeset
|
13 int[] Lookup(int which){ |
511 | 14 switch(which){ |
15 case 0: | |
16 return array[which]; | |
17 } | |
18 } | |
19 |