Mercurial > projects > dstress
annotate run/delegate_01.d @ 1489:b8c0195059d9
changed nntp: URLs to http: URLs
author | thomask |
---|---|
date | Mon, 09 Apr 2007 13:47:01 +0000 |
parents | 38ea1bb385b6 |
children | 20d8ee6523e1 |
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 | |
14 void bug(void delegate(inout T) f){ | |
15 f(S[0]); | |
16 } | |
17 } | |
18 | |
19 int main(){ | |
870 | 20 List!(bool) list; |
0 | 21 return 0; |
22 } | |
23 |