Check for constructor args in new anon class expression

This commit is contained in:
Callum Anderson 2014-02-22 16:53:37 +11:00
parent 20d90c412a
commit 355791cee6
1 changed files with 2 additions and 0 deletions

View File

@ -3527,6 +3527,8 @@ invariant() foo();
if (currentIs(tok!"("))
node.allocatorArguments = parseArguments();
expect(tok!"class");
if (currentIs(tok!"("))
node.constructorArguments = parseArguments();
if (!currentIs(tok!"{"))
node.baseClassList = parseBaseClassList();
node.structBody = parseStructBody();