diff --git a/src/dparse/parser.d b/src/dparse/parser.d index 767bbdc0..a07cd47e 100644 --- a/src/dparse/parser.d +++ b/src/dparse/parser.d @@ -3254,10 +3254,7 @@ class Parser if (isTemplate && currentIs(tok!"if")) mixin(parseNodeQ!(`node.constraint`, `Constraint`)); - if (currentIs(tok!";")) - advance(); - else - mixin(parseNodeQ!(`node.functionBody`, `FunctionBody`)); + mixin(parseNodeQ!(`node.functionBody`, `FunctionBody`)); ownArray(node.memberFunctionAttributes, memberFunctionAttributes); return node; }