class MyClass(T) : Base if (ConstraintExpression) {} compilation error

ref2401 refactor24 at gmail.com
Fri May 24 07:49:23 PDT 2013


Version D 2.062

Please 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


More information about the Digitalmars-d-learn mailing list