Merge pull request #119 from callumenator/mixin-fix

Allow typeof expression in template mixin
This commit is contained in:
Hackerpilot 2014-02-21 21:52:43 -08:00
commit 8060fbb565
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();