On Sunday, October 07, 2012 10:25:41 Tommi wrote: > The following compiles, which I'm pretty sure must be a bug, > right? Just checking to be sure I won't be polluting the bug > tracker. > > void main() > { > auto f = (int i) {}; > static assert (!is(f == function)); // should fail > static assert (!is(f == delegate)); > }
It's not a bug. is(f == function) checks for functions, not function pointers. http://stackoverflow.com/questions/11067972 - Jonathan M Davis