mirror of
https://github.com/dlang-community/dfmt.git
synced 2025-04-25 21:00:03 +03:00
Fix #287 - Extra space after import in delegate
This commit is contained in:
parent
3917c32925
commit
6ad2fbb6fc
4 changed files with 9 additions and 1 deletions
|
@ -1444,7 +1444,6 @@ private:
|
|||
&& !assumeSorted(astInformation.funLitEndLocations).equalRange(
|
||||
tokens[index].index).empty)
|
||||
{
|
||||
write(" ");
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
3
tests/allman/issue0287.d.ref
Normal file
3
tests/allman/issue0287.d.ref
Normal file
|
@ -0,0 +1,3 @@
|
|||
alias foo = typeof({ import std.math; });
|
||||
alias bar = typeof({ write("aaa"); });
|
||||
alias baz = typeof({ });
|
3
tests/issue0287.d
Normal file
3
tests/issue0287.d
Normal file
|
@ -0,0 +1,3 @@
|
|||
alias foo = typeof({import std.math;});
|
||||
alias bar = typeof({write("aaa");});
|
||||
alias baz = typeof({});
|
3
tests/otbs/issue0287.d.ref
Normal file
3
tests/otbs/issue0287.d.ref
Normal file
|
@ -0,0 +1,3 @@
|
|||
alias foo = typeof({ import std.math; });
|
||||
alias bar = typeof({ write("aaa"); });
|
||||
alias baz = typeof({ });
|
Loading…
Add table
Add a link
Reference in a new issue