[Issue 13063] `enum` is allowed as storage class for functions
via Digitalmars-d-bugs
digitalmars-d-bugs at puremagic.com
Mon Jul 7 00:36:50 PDT 2014
https://issues.dlang.org/show_bug.cgi?id=13063
Denis Shelomovskij <verylonglogin.reg at gmail.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Summary|`enum` is allowed as |`enum` is allowed as
|function return type |storage class for functions
|attribute |
--- Comment #1 from Denis Shelomovskij <verylonglogin.reg at gmail.com> ---
Also note this syntax is already used by mistake [1] probably because of recent
compiler changes rejecting meaningless `const`/`immutable` attributes.
Also this currently compiles too because of Issue 13064:
---
auto enum void f();
---
[1]
https://github.com/andersonpd/eris/commit/85637587c8f154a3d50360e66a29f08c5586d1b3
--
More information about the Digitalmars-d-bugs
mailing list