mirror of
https://github.com/dlang-community/dfmt.git
synced 2025-05-03 08:40:02 +03:00
Fix #148
This commit is contained in:
parent
e16c7bd465
commit
b868dbcaa6
4 changed files with 21 additions and 1 deletions
|
@ -404,7 +404,8 @@ private:
|
||||||
else
|
else
|
||||||
write(" ");
|
write(" ");
|
||||||
}
|
}
|
||||||
else if (index < tokens.length && (currentIs(tok!"@") || isBasicType(tokens[index].type)))
|
else if (index < tokens.length && (currentIs(tok!"@") || isBasicType(tokens[index].type)
|
||||||
|
|| currentIs(tok!"identifier")))
|
||||||
write(" ");
|
write(" ");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
7
tests/allman/issue0148.d.ref
Normal file
7
tests/allman/issue0148.d.ref
Normal file
|
@ -0,0 +1,7 @@
|
||||||
|
class Foo
|
||||||
|
{
|
||||||
|
@property Socket socket()
|
||||||
|
{
|
||||||
|
return this.socket;
|
||||||
|
}
|
||||||
|
}
|
7
tests/issue0148.d
Normal file
7
tests/issue0148.d
Normal file
|
@ -0,0 +1,7 @@
|
||||||
|
class Foo
|
||||||
|
{
|
||||||
|
@property Socket socket()
|
||||||
|
{
|
||||||
|
return this.socket;
|
||||||
|
}
|
||||||
|
}
|
5
tests/otbs/issue0148.d.ref
Normal file
5
tests/otbs/issue0148.d.ref
Normal file
|
@ -0,0 +1,5 @@
|
||||||
|
class Foo {
|
||||||
|
@property Socket socket() {
|
||||||
|
return this.socket;
|
||||||
|
}
|
||||||
|
}
|
Loading…
Add table
Add a link
Reference in a new issue