Comment #0 by ilya-stromberg-2009 — 2014-01-22T08:23:44Z
Reduced example:
void main()
{
int i;
i = i;
}
The code `i = i;` does nothing, but there are no compiler error.
This error in real life:
https://github.com/rejectedsoftware/vibe.d/issues/406
Note that we already have errors for no effect expression, for example for this code: `int i; i;` - `Error: var has no effect in expression (i)`.
Comment #1 by bearophile_hugs — 2014-01-22T09:53:04Z