https://issues.dlang.org/show_bug.cgi?id=13397

--- Comment #10 from Kenji Hara <[email protected]> ---
(In reply to Ketmar Dark from comment #2)
> Created attachment 1395 [details]
> postfix function attributes w/o '@' (better code, allows nogc {} and nogc:)

Combination of prefix attribute and contextual keyword feature will cause
ambiguity.

struct nogc {}
nogc foo() { return *(new nogc()); }   // func must not be @nogc

I think just only postfix cases should be accepted.

--

Reply via email to