Function pointer variable not recognized as function by is-operator

Tommi tommitissari at hotmail.com
Sun Oct 7 01:25:41 PDT 2012


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));
}



More information about the Digitalmars-d-learn mailing list