http://d.puremagic.com/issues/show_bug.cgi?id=6474



--- Comment #3 from Andrej Mitrovic <andrej.mitrov...@gmail.com> 2013-03-31 
13:36:42 PDT ---
Just pasting this here as I've ran into it again:

template test(T, Preds...)
{
    enum bool test = Preds[0]!T;  // error: semicolon expected, not '!'
}

A workaround is to use an alias:

template test(T, Preds...)
{
    alias Pred = Preds[0];
    enum bool test = Pred!T;
}

-- 
Configure issuemail: http://d.puremagic.com/issues/userprefs.cgi?tab=email
------- You are receiving this mail because: -------

Reply via email to