Comment #0 by snarwin+bugzilla — 2024-04-30T16:01:17Z
As of DMD 2.108.0, the following program fails to compile:
---
struct S(T) {}
enum E : S!int { a = S!int() }
static assert(is(E : S!int)); // ok
static assert(is(E : S!T, T)); // error
---
The error message is:
---
bug.d(5): Error: static assert: `is(E : S!T, __isexp_id2, T)` is false
---
The expected behavior is for both static assert statements to pass.
See also issue 21975, in which the same error was caused by a struct with `alias this`.
Comment #1 by robert.schadek — 2024-12-13T19:34:58Z