Fix issue 497: insert space before function/delegate in function type that returns template instantiated with parenless value argument
This commit is contained in:
parent
d92a6799ac
commit
4dd05031ec
|
@ -211,7 +211,9 @@ private:
|
||||||
{
|
{
|
||||||
immutable t = tokens[index].type;
|
immutable t = tokens[index].type;
|
||||||
if (t == tok!"identifier" || isStringLiteral(t)
|
if (t == tok!"identifier" || isStringLiteral(t)
|
||||||
|| isNumberLiteral(t) || t == tok!"characterLiteral")
|
|| isNumberLiteral(t) || t == tok!"characterLiteral"
|
||||||
|
// a!"b" function()
|
||||||
|
|| t == tok!"function" || t == tok!"delegate")
|
||||||
write(" ");
|
write(" ");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -0,0 +1,5 @@
|
||||||
|
alias f1 = S function();
|
||||||
|
alias f2 = S!"foo" function();
|
||||||
|
alias f3 = S!5 function();
|
||||||
|
alias f4 = S!S function();
|
||||||
|
alias f5 = S!(S) function();
|
|
@ -0,0 +1,5 @@
|
||||||
|
alias f1 = S function();
|
||||||
|
alias f2 = S!"foo" function();
|
||||||
|
alias f3 = S!5 function();
|
||||||
|
alias f4 = S!S function();
|
||||||
|
alias f5 = S!(S) function();
|
|
@ -0,0 +1,5 @@
|
||||||
|
alias f1 = S function();
|
||||||
|
alias f2 = S!"foo" function();
|
||||||
|
alias f3 = S!5 function();
|
||||||
|
alias f4 = S!S function();
|
||||||
|
alias f5 = S!(S) function();
|
Loading…
Reference in New Issue