August 14 [Issue 24703] New: Assigning from comma expression is allowed | ||||
---|---|---|---|---|
| ||||
https://issues.dlang.org/show_bug.cgi?id=24703 Issue ID: 24703 Summary: Assigning from comma expression is allowed Product: D Version: D2 Hardware: x86_64 OS: Linux Status: NEW Severity: minor Priority: P1 Component: dmd Assignee: nobody@puremagic.com Reporter: nick@geany.org The last line below should error. void main() { int x = 1, y; //y = (x++,x++); // Error: using the result of a comma expression is not allowed y = x++,x++; // no error } -- |
Copyright © 1999-2021 by the D Language Foundation