Summary: inout variable should not be modifiable
           Product: D
           Version: D2
          Platform: All
        OS/Version: All
            Status: NEW
          Keywords: accepts-invalid
          Severity: normal
          Priority: P2
         Component: DMD

--- Comment #0 from Kenji Hara <> 2011-10-05 15:53:50 PDT ---
inout(int) foo(inout(int) x)
    x = 5;  // cannot modify inout
    return 0;

inout(T) variable is treated like const(T), then it is not modifiable.

Configure issuemail:
------- You are receiving this mail because: -------

Reply via email to