Mercurial > projects > dstress
annotate nocompile/delegate_03.d @ 338:1f6cf5ccfbc9
1) updated rules to dmd-0.119
2) added __DSTRESS_ELINE__ tags
author | thomask |
---|---|
date | Mon, 21 Mar 2005 20:45:57 +0000 |
parents | 2c9eb7937bb2 |
children |
rev | line source |
---|---|
155 | 1 // $HeaderURL$ |
2 // $Date$ | |
3 // $Author$ | |
4 | |
5 // delegates can't be initialized with static member functions or | |
6 // non-member functions | |
7 | |
338 | 8 // __DSTRESS_ELINE__ 22 |
9 | |
155 | 10 module dstress.nocompile.delegate_03; |
11 | |
12 struct MyStruct{ | |
13 static int test(){ | |
14 return 3; | |
15 } | |
16 } | |
17 | |
18 int main(){ | |
19 int delegate() dl; | |
20 | |
21 MyStruct s; | |
22 dl = &s.test; | |
23 | |
24 return 0; | |
25 } |