https://issues.dlang.org/show_bug.cgi?id=13063
Issue ID: 13063
Summary: `enum` is allowed as function return type attribute
Product: D
Version: D2
Hardware: All
OS: All
Status: NEW
Keywords: accepts-invalid
Severity: normal
Priority: P1
Component: DMD
Assignee: [email protected]
Reporter: [email protected]
This code compiles but shouldn't:
---
enum void f1() { }
enum f2() { } // works like `auto`
---
--
