Mercurial > projects > dstress
view nocompile/delegate_07.d @ 155:2c9eb7937bb2
added delegate tests
author | thomask |
---|---|
date | Wed, 01 Dec 2004 07:23:29 +0000 |
parents | |
children | 1f6cf5ccfbc9 |
line wrap: on
line source
// $HeaderURL$ // $Date$ // $Author$ // delegates can only be initialized with non-static member functions module dstress.nocompile.delegate_07; struct MyStruct{ int test; } int main(){ int delegate() dl; MyStruct s; dl = &s.test; return 0; }