From 355791cee698f8edf3680d4467ba6a88690bf110 Mon Sep 17 00:00:00 2001 From: Callum Anderson Date: Sat, 22 Feb 2014 16:53:37 +1100 Subject: [PATCH] Check for constructor args in new anon class expression --- stdx/d/parser.d | 2 ++ 1 file changed, 2 insertions(+) diff --git a/stdx/d/parser.d b/stdx/d/parser.d index 9b72755..7187166 100644 --- a/stdx/d/parser.d +++ b/stdx/d/parser.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();