http://d.puremagic.com/issues/show_bug.cgi?id=2955

           Summary: Compiler rejects chained <>=
           Product: D
           Version: 1.041
          Platform: PC
        OS/Version: Linux
            Status: NEW
          Severity: normal
          Priority: P2
         Component: DMD
        AssignedTo: bugzi...@digitalmars.com
        ReportedBy: lijat...@gmail.com


The following code

void main(){
        double a,b,c;
        assert(a <>= b <>= c);
}

gets this response from the compiler

joh...@klaffhorn:~$ dmd test.d 
test.d(4): found '<>=' when expecting ')'
test.d(4): found 'c' when expecting ';' following 'statement'
test.d(4): found ')' instead of statement
joh...@klaffhorn:~$

if parenthesis are added the problem disappear.

If this is not valid code the a more helpful error message would be nice.


-- 

Reply via email to