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

Mathias LANG <[email protected]> changed:

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

--- Comment #1 from Mathias LANG <[email protected]> ---
Hit this today with the following code:
```D
bool hasLocalAliasing(Types...)()
{
    bool doesIt = false;
    static foreach (T; Types)
    {
        static if (is(T : Channel!CT, CT))
            doesIt |= true;
    }
    return doesIt;
}

class Channel (T) {}
static assert(!hasLocalAliasing!(Channel!(int), Channel!int));
```

Agree that this should not happen.

--

Reply via email to