Skip to content

struct Foo(); shouldn't be parsed as struct Foo; #15095

Closed
@ben0x539

Description

@ben0x539

Looks like struct Foo(); is accepted and makes an expression Foo a value of that type, just like the regular form struct Foo; does. Since Foo() as an expression still doesn't work, this is kinda confusing, and anyway not intended as far as I know.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions