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

--- Comment #3 from Stanislav Blinov <[email protected]> ---
All of these compile:

alias st = static int;
alias au = auto int;
alias sc = scope int;
alias ov = override int;
alias ab = abstract int;
alias sy = synchronized int;
alias nt = nothrow int;
alias pu = pure int;
alias re = ref int;

And none of them should, ideally with a message such as:

`ref` is not allowed in `alias` declaration.

(Currently, `out` and `lazy` don't compile, but the message is not that
succinct, as it falls through multiple parsing attemts).

--

Reply via email to