Merge pull request #120 from callumenator/anon-class-fix
Check for constructor args in new anon class expression
This commit is contained in:
commit
63b9ee48ae
|
@ -3527,6 +3527,8 @@ invariant() foo();
|
||||||
if (currentIs(tok!"("))
|
if (currentIs(tok!"("))
|
||||||
node.allocatorArguments = parseArguments();
|
node.allocatorArguments = parseArguments();
|
||||||
expect(tok!"class");
|
expect(tok!"class");
|
||||||
|
if (currentIs(tok!"("))
|
||||||
|
node.constructorArguments = parseArguments();
|
||||||
if (!currentIs(tok!"{"))
|
if (!currentIs(tok!"{"))
|
||||||
node.baseClassList = parseBaseClassList();
|
node.baseClassList = parseBaseClassList();
|
||||||
node.structBody = parseStructBody();
|
node.structBody = parseStructBody();
|
||||||
|
|
Loading…
Reference in New Issue