Thread overview
[Issue 15142] @trusted ignored on alias declarations when specified as prefix
Oct 03, 2015
Vladimir Panteleev
Dec 17, 2022
Iain Buclaw
Jul 15
Bolpat
October 03, 2015
https://issues.dlang.org/show_bug.cgi?id=15142

Vladimir Panteleev <thecybershadow@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Hardware|x86_64                      |All
           See Also|                            |https://issues.dlang.org/sh
                   |                            |ow_bug.cgi?id=12527,
                   |                            |https://issues.dlang.org/sh
                   |                            |ow_bug.cgi?id=12529
                 OS|Windows                     |All
           Severity|enhancement                 |normal

--- Comment #1 from Vladimir Panteleev <thecybershadow@gmail.com> ---
alias a = @trusted void function();
alias b = void function() @trusted;
pragma(msg, a);
pragma(msg, b);
static assert(is(a == b));

--
December 17, 2022
https://issues.dlang.org/show_bug.cgi?id=15142

Iain Buclaw <ibuclaw@gdcproject.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Priority|P1                          |P3

--
July 15
https://issues.dlang.org/show_bug.cgi?id=15142

Bolpat <qs.il.paperinik@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |qs.il.paperinik@gmail.com

--- Comment #2 from Bolpat <qs.il.paperinik@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;
```

--