Mercurial > projects > dstress
view nocompile/delegate_03.d @ 1621:8f6d65d2b129
Fix #4.
author | Christian Kamm <kamm incasoftware de> |
---|---|
date | Sat, 07 Nov 2009 19:06:53 +0100 |
parents | 1f6cf5ccfbc9 |
children |
line wrap: on
line source
// $HeaderURL$ // $Date$ // $Author$ // delegates can't be initialized with static member functions or // non-member functions // __DSTRESS_ELINE__ 22 module dstress.nocompile.delegate_03; struct MyStruct{ static int test(){ return 3; } } int main(){ int delegate() dl; MyStruct s; dl = &s.test; return 0; }