https://issues.dlang.org/show_bug.cgi?id=21762
--- Comment #3 from [email protected] --- Test case without dependencies: struct A(T) { ~this() { static assert(__traits(hasMember, T, "__xdtor")); } } void main() { static struct B { A!B next(); ~this() {} } static struct C { A!C next()(); ~this() {} } C().next(); } B fails while C compiles just fine. --
