Fix #153
This commit is contained in:
parent
c194335be9
commit
4fff6dc635
|
|
@ -626,8 +626,9 @@ private:
|
||||||
immutable bool a = !currentIs(tok!"version") && !currentIs(tok!"debug");
|
immutable bool a = !currentIs(tok!"version") && !currentIs(tok!"debug");
|
||||||
immutable bool b = a
|
immutable bool b = a
|
||||||
|| astInformation.conditionalWithElseLocations.canFindIndex(current.index);
|
|| astInformation.conditionalWithElseLocations.canFindIndex(current.index);
|
||||||
immutable bool shouldPushIndent = b
|
immutable bool c = b
|
||||||
|| astInformation.conditionalStatementLocations.canFindIndex(current.index);
|
|| astInformation.conditionalStatementLocations.canFindIndex(current.index);
|
||||||
|
immutable bool shouldPushIndent = c && !(currentIs(tok!"if") && indents.topIsWrap());
|
||||||
if (shouldPushIndent)
|
if (shouldPushIndent)
|
||||||
indents.push(current.type);
|
indents.push(current.type);
|
||||||
writeToken();
|
writeToken();
|
||||||
|
|
|
||||||
|
|
@ -0,0 +1,7 @@
|
||||||
|
class Foo(T) : FirstInterfaceWithVeryLongName,
|
||||||
|
SecondInterfaceWithVeryLongName if (is(T : Bar))
|
||||||
|
{
|
||||||
|
void foo()
|
||||||
|
{
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
@ -0,0 +1,5 @@
|
||||||
|
class Foo(T) : FirstInterfaceWithVeryLongName,
|
||||||
|
SecondInterfaceWithVeryLongName if (is(T : Bar)) {
|
||||||
|
void foo() {
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
@ -0,0 +1,5 @@
|
||||||
|
class Foo(T) : FirstInterfaceWithVeryLongName,
|
||||||
|
SecondInterfaceWithVeryLongName if (is(T : Bar)) {
|
||||||
|
void foo() {
|
||||||
|
}
|
||||||
|
}
|
||||||
Loading…
Reference in New Issue