This commit is contained in:
Hackerpilot 2015-08-24 12:44:52 -07:00
parent 46669f8073
commit 699ae10458
6 changed files with 22 additions and 5 deletions

View file

@ -1271,7 +1271,7 @@ const pure @safe @nogc:
break;
if (depths[i] < d)
break;
if (!braces && tokens[i].type == tok!";")
if (!braces && (tokens[i].type == tok!";" || tokens[i].type == tok!"{"))
break;
i++;
}

View file

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

View file

@ -0,0 +1,7 @@
final class FormatVisitor : ASTVisitor
{
this(ASTInformation* astInformation)
{
this.astInformation = astInformation;
}
}

7
tests/issue0172.d Normal file
View file

@ -0,0 +1,7 @@
final class FormatVisitor : ASTVisitor
{
this(ASTInformation* astInformation)
{
this.astInformation = astInformation;
}
}

View file

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

View file

@ -0,0 +1,5 @@
final class FormatVisitor : ASTVisitor {
this(ASTInformation* astInformation) {
this.astInformation = astInformation;
}
}