Mercurial > projects > dstress
view nocompile/delegate_07.d @ 1620:01e1c391b52d
Fix #6.
author | Christian Kamm <kamm incasoftware de> |
---|---|
date | Sat, 07 Nov 2009 19:00:12 +0100 |
parents | 1f6cf5ccfbc9 |
children |
line wrap: on
line source
// $HeaderURL$ // $Date$ // $Author$ // delegates can only be initialized with non-static member functions // __DSTRESS_ELINE__ 19 module dstress.nocompile.delegate_07; struct MyStruct{ int test; } int main(){ int delegate() dl; MyStruct s; dl = &s.test; return 0; }