On Friday, 24 May 2013 at 14:49:24 UTC, ref2401 wrote:
Version D 2.062Please explain what is causing the error class Base { } class Class(T) : Base if (is(T == int)) { } Error: unrecognized declaration Error: members expected Error: Declaration expected, not 'if' Error: { } expected following aggregate declaration
because dmd acts as grammar nazi:ClassTemplateDeclaration: class Identifier ( TemplateParameterList ) Constraintopt BaseClassListopt ClassBody
