Comment #0 by matti.niemenmaa+dbugzilla — 2009-11-14T12:29:13Z
template T(bool b) { static assert (b); }
template Mix() { void f() {} }
class C {
alias T!(is(typeof(M.f))) U;
mixin Mix!() M;
}
foo.d(1): Error: static assert (b) is false
Moving the alias below the mixin makes the code compile.
Comment #1 by github-bugzilla — 2012-03-12T19:28:22Z