[Issue 12068] New: `enum` as `inout` function parameter isn't enough for `inout` return.

d-bugmail at puremagic.com d-bugmail at puremagic.com
Mon Feb 3 05:01:03 PST 2014


https://d.puremagic.com/issues/show_bug.cgi?id=12068

           Summary: `enum` as `inout` function parameter isn't enough for
                    `inout` return.
           Product: D
           Version: D2
          Platform: All
        OS/Version: All
            Status: NEW
          Keywords: rejects-valid
          Severity: normal
          Priority: P2
         Component: DMD
        AssignedTo: nobody at puremagic.com
        ReportedBy: verylonglogin.reg at gmail.com


--- Comment #0 from Denis Shelomovskij <verylonglogin.reg at gmail.com> 2014-02-03 17:01:01 MSK ---
This code should compile:
---
enum E { a }

inout(int) f(inout E);
---
Error: inout on return means inout must be on a parameter as well for
inout(int)(inout(E))
---

-- 
Configure issuemail: https://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------


More information about the Digitalmars-d-bugs mailing list