Summary: with statement doesn't work with functions that return
           Product: D
           Version: D2
          Platform: Other
        OS/Version: Windows
            Status: NEW
          Severity: normal
          Priority: P2
         Component: DMD

--- Comment #0 from Andrej Mitrovic <> 2011-09-19 
09:14:03 PDT ---
struct Foo { }
Foo foo() { Foo _foo; return _foo; }

void main()
    with (foo()) { }

Error: foo() is not an lvalue

For me this is particularly a problem when using property functions.

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

Reply via email to