Skip to content

Implement support for C#10 #1

@cranberry-clockworks

Description

@cranberry-clockworks

Looks like the formatter doesn't support C#10 features.

For example:

// test1.cs
using System;

namespace Foo;

class Bar {
}
$ ./prettysharp.exe test1.cs
[line 3] Error at ';': Expected '{' at the beginning of a namespace declaration

The file with the older namespace style works just fine:

// test2.cs
using System;

namespace Foo {
    class Bar {
    }
}
$ ./prettysharp.exe test1.cs
using System;

namespace Foo
{
    class Bar
    {

    }
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions