From 8e67b02fb093b6dd9ec6ced4b678000c9e3120b2 Mon Sep 17 00:00:00 2001 From: Thomas Leonard Date: Fri, 26 Sep 2008 20:07:17 +0100 Subject: [PATCH] Allow static inner classes Was getting caught incorrectly by the no-static-variables rule. --- dmd/parse.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dmd/parse.c b/dmd/parse.c index 9777abf..1ce9f0b 100644 --- a/dmd/parse.c +++ b/dmd/parse.c @@ -296,7 +296,7 @@ Array *Parser::parseDeclDefs(int once) } else { stc = STCstatic; - if (dltNormalMode) + if (dltNormalMode && token.value != TOKclass) error("no static variables in Delight"); goto Lstc2; } -- 2.11.4.GIT