Summary: if(bool = bool) results in ill-worded error
           Product: D
           Version: 2.041
          Platform: x86
        OS/Version: All
            Status: NEW
          Severity: enhancement
          Priority: P2
         Component: DMD

--- Comment #0 from Steven Schveighoffer <> 2010-05-07 
10:42:33 PDT ---
The following code:

bool x, y;
if(x = y) {}

results in the following error:

Error: '=' does not give a boolean result

Which is clearly not a correct message.  A better message would be something

Error: '=' cannot be used inside an if condition

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

Reply via email to