Mercurial > projects > dstress
annotate nocompile/delegate_09.d @ 155:2c9eb7937bb2
added delegate tests
author | thomask |
---|---|
date | Wed, 01 Dec 2004 07:23:29 +0000 |
parents | |
children | 1f6cf5ccfbc9 |
rev | line source |
---|---|
155 | 1 // $HeaderURL$ |
2 // $Date$ | |
3 // $Author$ | |
4 | |
5 // delegates can only be initialized with non-static member functions | |
6 | |
7 module dstress.nocompile.delegate_09; | |
8 | |
9 enum MyEnum{ | |
10 test | |
11 } | |
12 | |
13 int main(){ | |
14 int delegate() dl; | |
15 | |
16 MyEnum e; | |
17 dl = &e.test; | |
18 | |
19 return 0; | |
20 } |