This commit is contained in:
Hackerpilot 2013-11-04 12:40:23 -08:00
parent 2cf73576f4
commit c522170983
1 changed files with 17 additions and 1 deletions

View File

@ -1683,7 +1683,23 @@ class ClassFour(A, B) if (someTest()) : Super {}}c;
if (peekIs(TokenType.template_))
node.mixinTemplateDeclaration = parseMixinTemplateDeclaration();
else
node.mixinDeclaration = parseMixinDeclaration();
{
auto b = setBookmark();
advance();
auto t = peekPastParens();
if (t !is null && t.type == TokenType.semicolon)
{
goToBookmark(b);
node.mixinDeclaration = parseMixinDeclaration();
}
else
{
goToBookmark(b);
error("Declaration expected");
advance();
return null;
}
}
break;
case pragma_:
node.pragmaDeclaration = parsePragmaDeclaration();