Skip to content

UDAs with single template argument are sandwiched with declaration #599

@dkorpel

Description

@dkorpel

Input:

@1 float f() => 1.0;

@"test name" unittest 
{
}

Expected output: the same
Actual dfmt output:

@1float f() => 1.0;

@"test name"unittest
{
}

The spaces after the attributes are removed, leading to code that looks worse or won't even compile anymore if you're unlucky.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions