Skip to content

%%private without body should not be allowed #5632

Closed
@cknitt

Description

@cknitt

Just saw something like this in a codebase:

%%private
let x = 42

This usage of %%private is allowed by the parser/compiler, but has no effect at all.

What the author actually meant was

%%private(let x = 42)

Therefore, the usage without a "body" should cause a compiler error IMHO.

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