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

Tomoya Tanjo <[email protected]> changed:

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

--- Comment #6 from Tomoya Tanjo <[email protected]> ---
I have a similar issue as reported in the issue 22184.

run.dlang.io: https://run.dlang.io/is/VZtiPO


```dlang
class A
{
    static if (isHashable!B) {}
}

class B
{
    static if (isHashable!C) {}
}

class C
{
    static if (isHashable!B && isHashable!int) {}
}

enum isHashable(T) = __traits(compiles,
    () { T.init; }
);

void main(){}
```

I confirmed it does not work with dmd 2.100.2.
It works when the order of declaration is `C`, `A`, and `B`.

--

Reply via email to