Skip to content

Position of docstrings for union tags is strange #153

@AiOO

Description

@AiOO

When I want to add some comment about rectangle,

union shape
    = rectangle (point upper-left, point lower-right)
    # Information about a rectangle
    | circle (point origin, offset radius)
    ;

expected postion should be

union shape
    = rectangle (
        # Information about a rectangle
        point upper-left,
        point lower-right
    )
    | circle (point origin, offset radius)
    ;

but I have to add it like below.

union shape
    = rectangle (point upper-left, point lower-right)
    # Information about a rectangle
    | circle (point origin, offset radius)
    ;

Metadata

Metadata

Assignees

Labels

cat:langCategory: Language designcmp:compilerComponent: Compiler backend (e.g., annotation processors, code generators)typ:enhanceType: Enhancement/new feature

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions