This issue is similar to bug 6087. template True(T) { immutable True = true; } class Foo {} class Bar : Foo { static assert( True!(typeof(super)) ); }
May fixed in 2.057. https://github.com/D-Programming-Language/dmd/pull/475 https://github.com/D-Programming-Language/dmd/commit/85549f10e7904dac18da80b94a0cea2084936542