[Issue 15142] @trusted ignored on alias declarations when specified as prefix
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Mon Jul 15 12:56:47 UTC 2024
https://issues.dlang.org/show_bug.cgi?id=15142
Bolpat <qs.il.paperinik at gmail.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |qs.il.paperinik at gmail.com
--- Comment #2 from Bolpat <qs.il.paperinik at gmail.com> ---
Alias doesn’t support prefix attributes this way.
```d
alias a = @trusted void function();
```
You have to write:
```d
@trusted alias a = void function();
```
If you want prefix syntax. Annoying.
My bet is this is from the alias Blabla x days, because this works:
```d
@trusted alias void function() a;
```
--
More information about the Digitalmars-d-bugs
mailing list