This commit is contained in:
Hackerpilot 2015-05-13 14:39:34 -07:00
parent c194335be9
commit 4fff6dc635
4 changed files with 19 additions and 1 deletions

View file

@ -626,8 +626,9 @@ private:
immutable bool a = !currentIs(tok!"version") && !currentIs(tok!"debug");
immutable bool b = a
|| astInformation.conditionalWithElseLocations.canFindIndex(current.index);
immutable bool shouldPushIndent = b
immutable bool c = b
|| astInformation.conditionalStatementLocations.canFindIndex(current.index);
immutable bool shouldPushIndent = c && !(currentIs(tok!"if") && indents.topIsWrap());
if (shouldPushIndent)
indents.push(current.type);
writeToken();

View file

@ -0,0 +1,7 @@
class Foo(T) : FirstInterfaceWithVeryLongName,
SecondInterfaceWithVeryLongName if (is(T : Bar))
{
void foo()
{
}
}

5
tests/issue0153.d Normal file
View file

@ -0,0 +1,5 @@
class Foo(T) : FirstInterfaceWithVeryLongName,
SecondInterfaceWithVeryLongName if (is(T : Bar)) {
void foo() {
}
}

View file

@ -0,0 +1,5 @@
class Foo(T) : FirstInterfaceWithVeryLongName,
SecondInterfaceWithVeryLongName if (is(T : Bar)) {
void foo() {
}
}