Allow typeof expression in template mixin

This commit is contained in:
Callum Anderson 2014-02-22 15:56:50 +11:00
parent 20d90c412a
commit faf17b8afe
1 changed files with 1 additions and 1 deletions

View File

@ -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();