Mercurial > projects > dstress
view nocompile/delegate_05.d @ 1547:5e981cf4a7d5
Christian Kamm <kamm@incasoftware.de>
2007-04-24
http://d.puremagic.com/issues/show_bug.cgi?id=540
author | thomask |
---|---|
date | Mon, 23 Jul 2007 18:40:50 +0000 |
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_05; class MyClass{ static int test(){ return 3; } } int main(){ int delegate() dl; MyClass c; dl = &c.test; return 0; }