D-Programming-Language/dmd — pull request #1337 by AndrejMitrovic (2012-11-30 00:14:50+00:00)
Title: Fix Issue 6949 - Warn when unsigned type is compared less-than to zero

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

A warning is printed when an unsigned type is compared less-than to zero:

```D
uint x;
if (x < 0 ) { } // can never be true
if (0 > x) { } // ditto for symmetry
```

The second if statement generates a different warning message (I think it would be a little confusing if we reused the same error message since the operators are different).