[Issue 13063] New: `enum` is allowed as function return type attribute

via Digitalmars-d-bugs digitalmars-d-bugs at puremagic.com
Mon Jul 7 00:26:26 PDT 2014


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: nobody at puremagic.com
          Reporter: verylonglogin.reg at gmail.com

This code compiles but shouldn't:
---
enum void f1() { }
enum f2() { } // works like `auto`
---

--


More information about the Digitalmars-d-bugs mailing list