mirror of
https://github.com/dlang-community/dfmt.git
synced 2025-04-25 21:00:03 +03:00
Fix #66
This commit is contained in:
parent
41dc8ef9e9
commit
745ffd6a5b
3 changed files with 20 additions and 1 deletions
|
@ -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
8
tests/issue0066.d
Normal file
|
@ -0,0 +1,8 @@
|
|||
int overloadApply(int function(void*, Dsymbol) fp)
|
||||
{
|
||||
}
|
||||
|
||||
void takesArray(int[])
|
||||
{
|
||||
doesntUseArray();
|
||||
}
|
8
tests/issue0066.d.ref
Normal file
8
tests/issue0066.d.ref
Normal file
|
@ -0,0 +1,8 @@
|
|||
int overloadApply(int function(void*, Dsymbol) fp)
|
||||
{
|
||||
}
|
||||
|
||||
void takesArray(int[])
|
||||
{
|
||||
doesntUseArray();
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue