dlang-community / dfmt

Dfmt is a formatter for D source code

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Anonymous class as function parameter messes up entirely

FeepingCreature opened this issue · comments

Consider:

void main()
{
    call(new class Object
    {
        void method()
        {
            call;
        }
    });
}

dfmt's take:

void main()
{
    call(new class Object
        {
        void method()
        {
            call;}
        }
);
    }

And from there on, the entire rest of the file is misindented by one.