Summary: Can't have declaration with assignment to
                    const/immutable inside if condition
           Product: D
           Version: 2.036
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: DMD

--- Comment #0 from Tomasz SowiƄski <> 2010-01-07 14:47:07 
PST ---
Should pass:

if (const int a = 4)  // Error: variable test.main.a cannot modify const
    assert (a==4);

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

Reply via email to