Fix mixin declarations
This commit is contained in:
parent
87ed0bd3b4
commit
00768c371a
|
@ -1686,18 +1686,26 @@ class ClassFour(A, B) if (someTest()) : Super {}}c;
|
||||||
{
|
{
|
||||||
auto b = setBookmark();
|
auto b = setBookmark();
|
||||||
advance();
|
advance();
|
||||||
auto t = peekPastParens();
|
if (currentIs(TokenType.lParen))
|
||||||
if (t !is null && t.type == TokenType.semicolon)
|
|
||||||
{
|
{
|
||||||
goToBookmark(b);
|
auto t = peekPastParens();
|
||||||
node.mixinDeclaration = parseMixinDeclaration();
|
if (t !is null && t.type == TokenType.semicolon)
|
||||||
|
{
|
||||||
|
goToBookmark(b);
|
||||||
|
node.mixinDeclaration = parseMixinDeclaration();
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
goToBookmark(b);
|
||||||
|
error("Declaration expected");
|
||||||
|
advance();
|
||||||
|
return null;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
goToBookmark(b);
|
goToBookmark(b);
|
||||||
error("Declaration expected");
|
node.mixinDeclaration = parseMixinDeclaration();
|
||||||
advance();
|
|
||||||
return null;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
|
Loading…
Reference in New Issue