mirror of
https://github.com/dlang-community/dfmt.git
synced 2025-04-25 21:00:03 +03:00
Fix #118
This commit is contained in:
parent
c291340e90
commit
76c37dd8f6
4 changed files with 1861 additions and 1813 deletions
3628
src/dfmt.d
3628
src/dfmt.d
File diff suppressed because it is too large
Load diff
16
tests/allman/issue0118.d.ref
Normal file
16
tests/allman/issue0118.d.ref
Normal file
|
@ -0,0 +1,16 @@
|
|||
auto foo = bar(1, 1, 1);
|
||||
auto foo = A!(int, int, int);
|
||||
enum foo = bar(1, 1, 1);
|
||||
enum foo = A!(int, int, int);
|
||||
|
||||
enum bar
|
||||
{
|
||||
a = Struct(a, b, c),
|
||||
b = Struct(d, e, f)
|
||||
}
|
||||
|
||||
enum bar
|
||||
{
|
||||
a = Struct(a, b, c),
|
||||
b = Struct(d, e, f),
|
||||
}
|
16
tests/issue0118.d
Normal file
16
tests/issue0118.d
Normal file
|
@ -0,0 +1,16 @@
|
|||
auto foo = bar(1, 1, 1);
|
||||
auto foo = A!(int, int, int);
|
||||
enum foo = bar(1, 1, 1);
|
||||
enum foo = A!(int, int, int);
|
||||
|
||||
enum bar
|
||||
{
|
||||
a = Struct(a, b, c),
|
||||
b = Struct(d, e, f)
|
||||
}
|
||||
|
||||
enum bar
|
||||
{
|
||||
a = Struct(a, b, c),
|
||||
b = Struct(d, e, f),
|
||||
}
|
14
tests/otbs/issue0118.d.ref
Normal file
14
tests/otbs/issue0118.d.ref
Normal file
|
@ -0,0 +1,14 @@
|
|||
auto foo = bar(1, 1, 1);
|
||||
auto foo = A!(int, int, int);
|
||||
enum foo = bar(1, 1, 1);
|
||||
enum foo = A!(int, int, int);
|
||||
|
||||
enum bar {
|
||||
a = Struct(a, b, c),
|
||||
b = Struct(d, e, f)
|
||||
}
|
||||
|
||||
enum bar {
|
||||
a = Struct(a, b, c),
|
||||
b = Struct(d, e, f),
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue