struct S
{
static f() {}
}
alias T1 = typeof(&S.f);
alias T2 = typeof(&S.f);
pragma(msg, T1); /* Prints "void function()". Should print the same as below. */
pragma(msg, T2); /* Prints "void function() pure nothrow @nogc @safe". */
static assert(is(T1 == T2)); /* Fails. Should pass. */
static assert(is(T1 == void function() pure nothrow @nogc @safe)); /* Fails. Should pass. */
Comment #1 by robert.schadek — 2024-12-13T19:16:25Z