This commit is contained in:
Hackerpilot 2013-10-29 15:46:36 -07:00
parent b7a671896d
commit 1c057260d5
2 changed files with 9 additions and 6 deletions

View File

@ -1150,15 +1150,15 @@ class XMLPrinter : ASTVisitor
if (templateAliasParameter.assignExpression !is null)
{
output.writeln("<specialization>");
output.writeln("<default>");
visit(templateAliasParameter.assignExpression);
output.writeln("</specialization>");
output.writeln("</default>");
}
else if (templateAliasParameter.colonType !is null)
else if (templateAliasParameter.assignType !is null)
{
output.writeln("<specialization>");
output.writeln("<default>");
visit(templateAliasParameter.assignType);
output.writeln("</specialization>");
output.writeln("</default>");
}
output.writeln("</templateAliasParameter>");

View File

@ -4789,8 +4789,11 @@ q{(int a, ...)
expect(TokenType.alias_);
if (currentIs(TokenType.identifier))
{
if (peekIsOneOf(TokenType.comma, TokenType.rParen, TokenType.assign))
if (peekIsOneOf(TokenType.comma, TokenType.rParen, TokenType.assign,
TokenType.colon))
{
node.identifier = advance();
}
}
else
{