On Monday, 3 October 2016 at 13:50:26 UTC, John Colvin wrote:
The problem is that function pointers in "is" expressions don't match "function" or "delegate".static assert (is(void delegate() == delegate)); //passes static assert (is(void function() == function)); //fails static assert (is(void function() == delegate)); //fails Bug report?
Note that there is at least some code that relies on current behavior to distinguish delegate/function fields from method declarations in aggregates.