[Issue 9604] typeof emits wrong common type with immutable type

d-bugmail at puremagic.com d-bugmail at puremagic.com
Mon Aug 10 12:40:40 UTC 2020


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

Steven Schveighoffer <schveiguy at yahoo.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |schveiguy at yahoo.com

--- Comment #3 from Steven Schveighoffer <schveiguy at yahoo.com> ---
This has nothing to do with chain or arrays, BTW:

ubyte b;
immutable ubyte b2;

auto x = true ? b : b2;

static assert(typeof(x) == int);

--


More information about the Digitalmars-d-bugs mailing list