https://issues.dlang.org/show_bug.cgi?id=14549
--- Comment #3 from Puneet Goel <[email protected]> --- Reduced code. With the PR applied, I get dmd assertion failure: $ dmd /tmp/test.d dmd: attrib.c:1219: virtual Dsymbols* StaticIfDeclaration::include(Scope*, ScopeDsymbol*): Assertion `scope' failed. Aborted //// test.d template foo() { mixin(foo!(typeof(this))); } template foo(T) { enum string foo = q{static if(! __traits(isVirtualMethod, "boo")) {}} ; } class bar { mixin foo; int boo; } --
