From faf17b8afe23eb89dae31df5aa7258cae2f32011 Mon Sep 17 00:00:00 2001 From: Callum Anderson Date: Sat, 22 Feb 2014 15:56:50 +1100 Subject: [PATCH] Allow typeof expression in template mixin --- stdx/d/parser.d | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/stdx/d/parser.d b/stdx/d/parser.d index 9b72755..cb6602f 100644 --- a/stdx/d/parser.d +++ b/stdx/d/parser.d @@ -3384,7 +3384,7 @@ invariant() foo(); { mixin(traceEnterAndExit!(__FUNCTION__)); auto node = new MixinDeclaration; - if (peekIs(tok!"identifier")) + if (peekIs(tok!"identifier") || peekIs(tok!"typeof")) node.templateMixinExpression = parseTemplateMixinExpression(); else if (peekIs(tok!"(")) node.mixinExpression = parseMixinExpression();