mirror of
https://github.com/dlang-community/dfmt.git
synced 2025-04-25 21:00:03 +03:00
Fix #187
This commit is contained in:
parent
480e6fe973
commit
0389d798d7
4 changed files with 9 additions and 1 deletions
|
@ -466,7 +466,7 @@ private:
|
|||
write(" ");
|
||||
}
|
||||
else if (index < tokens.length && (currentIs(tok!"@") || isBasicType(tokens[index].type)
|
||||
|| currentIs(tok!"identifier")))
|
||||
|| currentIs(tok!"identifier") || currentIs(tok!"if")))
|
||||
write(" ");
|
||||
}
|
||||
|
||||
|
|
3
tests/allman/issue0187.d.ref
Normal file
3
tests/allman/issue0187.d.ref
Normal file
|
@ -0,0 +1,3 @@
|
|||
void doStuff(T)() @safe if (isNumeric!T)
|
||||
{
|
||||
}
|
3
tests/issue0187.d
Normal file
3
tests/issue0187.d
Normal file
|
@ -0,0 +1,3 @@
|
|||
void doStuff(T)() @safe if (isNumeric!T)
|
||||
{
|
||||
}
|
2
tests/otbs/issue0187.d.ref
Normal file
2
tests/otbs/issue0187.d.ref
Normal file
|
@ -0,0 +1,2 @@
|
|||
void doStuff(T)() @safe if (isNumeric!T) {
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue