[Issue 15279] dchar is treated as char in case range

via Digitalmars-d-bugs digitalmars-d-bugs at puremagic.com
Mon Nov 2 15:26:45 PST 2015


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

ag0aep6g at gmail.com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |ag0aep6g at gmail.com

--- Comment #1 from ag0aep6g at gmail.com ---
I don't think this is an issue with dchar/char. The same happens with int:

----
void main() {
    int d;

    switch (d) {
    case 0: .. case 0x0101:
        break;
    }
}
----

Looks like more than 256 cases are not supported.

--


More information about the Digitalmars-d-bugs mailing list