https://issues.dlang.org/show_bug.cgi?id=259

Jon Degenhardt <[email protected]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |[email protected]
                   |                            |m

--- Comment #62 from Jon Degenhardt <[email protected]> ---
Hit this in my code. My bug, but would have been useful if the compiler had
informed me there was a signed vs unsigned comparison. Here's the reduced form
of what was happening in my code:

    void main() {
        int i = -1;
        size_t j = 0;
        assert(i < j);
    }

This code compiles, and the assert fails. Except that I didn't have the assert,
just the test.

--

Reply via email to