Closed brokenhappy closed 1 month ago
Describe the bug Generating code for an enum builder that only has an init block is missing semicolon
To Reproduce
TypeSpec.enumBuilder("Foo") .addInitializerBlock(CodeBlock.EMPTY) .build()
Produces:
public enum class Foo { init { } }
Expected behavior It should produce:
public enum class Foo { ; init { } }
Describe the bug Generating code for an enum builder that only has an init block is missing semicolon
To Reproduce
Produces:
Expected behavior It should produce: