Diagnostics for redundant qualifiers

Nicholas Wilson iamthewilsonator at hotmail.com
Wed Jul 28 22:40:59 UTC 2021


On Wednesday, 28 July 2021 at 18:54:12 UTC, Per Nordlöw wrote:
> What about making
>
> ```d
> @safe struct S  {
>    void f() @safe {}
> }
> ```
>
> warn or deprecate as
>
> ```
> Warning: redundant function attribute `@safe`
> ```
>
> ?

No, think about if `f` is generated from a string or template 
mixin.


More information about the Digitalmars-d mailing list