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

Paul Backus <[email protected]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |[email protected]
          Component|phobos                      |dmd

--- Comment #2 from Paul Backus <[email protected]> ---
Looks like a bug in the is expression. The "true" below ought to be "false":

enum Enum : string { foo = "bar" }

pragma(msg, is(Enum == string)); // false
pragma(msg, is(Enum == T[], T)); // true
pragma(msg, T); // immutable(char)

--

Reply via email to