[Issue 18594] New: constant 1 is not an lvalue should have a better error message
d-bugmail at puremagic.com
d-bugmail at puremagic.com
Sun Mar 11 21:59:25 UTC 2018
https://issues.dlang.org/show_bug.cgi?id=18594
Issue ID: 18594
Summary: constant 1 is not an lvalue should have a better error
message
Product: D
Version: D2
Hardware: All
OS: All
Status: NEW
Severity: enhancement
Priority: P1
Component: dmd
Assignee: nobody at puremagic.com
Reporter: greensunny12 at gmail.com
---
void main() {
assert(1 = 2);
}
---
currently errors with "foo.d(2): Error: constant 1 is not an lvalue".
The error message should be better: (1) not mention lvalue and (2) suggesting
`==`.
--
More information about the Digitalmars-d-bugs
mailing list