This failure seems curious and I haven't been able to understand why it occurs, or whether it might be intentional. For all other callable types, including functions and delegates and types implementing opCall, the assertion passes.

    import std.traits : FunctionTypeOf;
    void function() func;
// Error: static assert (is(void() == void function())) is false
    static assert(is(FunctionTypeOf!func == typeof(func)));

Reply via email to