[Issue 21171] Undefined identifier when alias inside static if.

d-bugmail at puremagic.com d-bugmail at puremagic.com
Tue Aug 18 06:59:08 UTC 2020


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

Iain Buclaw <ibuclaw at gdcproject.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |ibuclaw at gdcproject.org

--- Comment #1 from Iain Buclaw <ibuclaw at gdcproject.org> ---
Don't even need to have it in two separate sources.

---
struct Token
{
    union
    {
        sinteger_t intvalue;
        uinteger_t unsvalue;
    }
}

static if (0)
{
}
else
{
    alias Uint64 = ulong;
    alias Int64 = long;
}

alias sinteger_t = Int64;
alias uinteger_t = Uint64;

--


More information about the Digitalmars-d-bugs mailing list