import std.range; class Foo {} class Bar(T) : Foo if(isInputRange!T) {} test9.d(4): members expected test9.d(4): { } expected following aggregate declaration test9.d(4): Declaration expected, not 'if'
This works: --- class Foo {} class Bar(T) if(isInputRange!T) : Foo {} --- I'm pretty sure that someone already filled a bug about this issue. Couldn't find it though.
*** This issue has been marked as a duplicate of issue 3673 ***