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
stdx/d
|
@ -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();
|
||||
|
|
Loading…
Reference in New Issue