What    |Removed                     |Added
                 CC|                            |
           Keywords|                            |accepts-invalid

------- Comment #2 from  2009-01-11 17:28 -------
It doesn't work.  "works" means "behaves correctly", not "compiles without

The code is wrong regardless of whether dofun is static or not. needs an
object of type A.  But it doesn't have one.

bz2557.d(21): Error: this for fun needs to be type A not type method_ref.B
bz2557.d(21): Error: cannot implicitly convert expression (& of type
void delegate() to void function()


Reply via email to