Comment #0 by dlang-bugzilla — 2021-06-19T22:49:13Z
//////////// test.d ////////////
alias A = @safe void function();
alias B = void function() @safe;
static assert(is(A == B));
////////////////////////////////
Does not happen with pure / nothrow / @nogc.
Comment #1 by dlang-bugzilla — 2021-06-19T23:37:21Z
Comment #2 by dlang-bugzilla — 2021-06-19T23:37:45Z
If this is some kind of legacy language misfeature, it needs to be put on the deprecation path.
Comment #3 by dkorpel — 2022-04-10T19:20:34Z
Behavior was introduced by:
commit f15ca4c322c61d8acec1987351c0eb2b520aa327
Author: k-hara <[email protected]>
Date: Sat Jun 28 14:17:43 2014 +0900
Keep existing weird prefix attribute behavior on AliasDeclaration and VarDeclaration
I'd like to store all prefix attributes to `Declaration::storage_class`, but
currently it's not possible because of these behaviors.
Comment #4 by robert.schadek — 2024-12-13T19:17:12Z