Fix #61
This commit is contained in:
parent
b7a671896d
commit
1c057260d5
10
astprinter.d
10
astprinter.d
|
@ -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>");
|
||||
|
|
|
@ -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
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue