Fix #54
This commit is contained in:
parent
2cf73576f4
commit
c522170983
|
@ -1683,7 +1683,23 @@ class ClassFour(A, B) if (someTest()) : Super {}}c;
|
||||||
if (peekIs(TokenType.template_))
|
if (peekIs(TokenType.template_))
|
||||||
node.mixinTemplateDeclaration = parseMixinTemplateDeclaration();
|
node.mixinTemplateDeclaration = parseMixinTemplateDeclaration();
|
||||||
else
|
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;
|
break;
|
||||||
case pragma_:
|
case pragma_:
|
||||||
node.pragmaDeclaration = parsePragmaDeclaration();
|
node.pragmaDeclaration = parsePragmaDeclaration();
|
||||||
|
|
Loading…
Reference in New Issue