Skip to content

struct Foo {} should be rejected #5449

Closed
@catamorphism

Description

@catamorphism

The correct syntax is struct Foo;. Currently, this is accepted silently, but with errors if you try to use the constructor Foo.

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-frontendArea: Compiler frontend (errors, parsing and HIR)

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions