Summary: `out` section makes return type `const` in `return`
           Product: D
           Version: D2
          Platform: Other
        OS/Version: Windows
            Status: NEW
          Keywords: accepts-invalid
          Severity: normal
          Priority: P2
         Component: DMD

--- Comment #0 from Denis <> 2012-01-11 21:01:55 MSK 
int* f() 
out { } // no errors with `out` section
body {
    immutable(int)* ptr;
    return ptr;
If `immutable(int)*` is changed to `immutable(void)*` we have the following
`Error: cannot implicitly convert expression (ptr) of type immutable(void)* to
const(int*)` illustrating the issue. Note, that `typeof(f())` and
`typeof(return)` are `int*`.
Maybe concerned with Issue 1313

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

Reply via email to