This commit is contained in:
Hackerpilot 2015-03-08 18:37:05 -07:00
parent 41dc8ef9e9
commit 745ffd6a5b
3 changed files with 20 additions and 1 deletions

View File

@ -374,8 +374,11 @@ private:
.equalRange(current.index).empty)
{
writeToken();
if (!currentIs(tok!"*") && !currentIs(tok!")") && !currentIs(tok!"["))
if (!currentIs(tok!"*") && !currentIs(tok!")") && !currentIs(tok!"[")
&& !currentIs(tok!","))
{
write(" ");
}
break;
}
else if (assumeSorted(astInformation.unaryLocations).equalRange(current.index).empty)

8
tests/issue0066.d Normal file
View File

@ -0,0 +1,8 @@
int overloadApply(int function(void*, Dsymbol) fp)
{
}
void takesArray(int[])
{
doesntUseArray();
}

8
tests/issue0066.d.ref Normal file
View File

@ -0,0 +1,8 @@
int overloadApply(int function(void*, Dsymbol) fp)
{
}
void takesArray(int[])
{
doesntUseArray();
}