Mercurial > projects > dstress
annotate run/delegate_01.d @ 1535:20d8ee6523e1
updated to DMD-1.013
author | thomask |
---|---|
date | Mon, 07 May 2007 05:19:57 +0000 |
parents | b8c0195059d9 |
children |
rev | line source |
---|---|
140 | 1 // $HeadURL$ |
2 // $Date$ | |
3 // $Author$ | |
0 | 4 |
202 | 5 // @author@ Bent Rasmussen <exo@bent-rasmussen.info> |
0 | 6 // @date@ 2004-08-12 |
1489 | 7 // @uri@ http://www.digitalmars.com/pnews/read.php?server=news.digitalmars.com&group=digitalmars.D.bugs&artnum=1338 |
0 | 8 |
374 | 9 module dstress.run.delegate_01; |
10 | |
0 | 11 struct List(T){ |
12 T[] S; | |
13 | |
1535 | 14 void bug(void delegate(ref T) f){ |
0 | 15 f(S[0]); |
16 } | |
17 } | |
18 | |
19 int main(){ | |
870 | 20 List!(bool) list; |
0 | 21 return 0; |
22 } | |
23 |