HaxeCheckstyle / haxe-formatter

Haxe code formatter based on tokentree
https://haxecheckstyle.github.io/haxe-formatter-docs/#codesamples.CommonSamples.allman_curlies
MIT License
72 stars 16 forks source link

regression on enums with type parameters #659

Closed Antriel closed 1 year ago

Antriel commented 1 year ago

Not sure when this started happening, but it used to work ~2 years ago.

Input file

enum Foo<Child> {
    Bar<T>(options : Array<T>);
}

Broken output

enum Foo<Child> {
    Bar<T>
    (options : Array<T>);
}

Expected output No change.