Skip to content

constructor's param cannot be open #9226

Closed
@ohze

Description

@ohze

Minimized code

class C(open: Int)

Output

[error] 1 |class C(open: Int)
[error]   |            ^
[error]   |             values cannot be open

Expectation

I know that open is a soft modifier

open is a soft modifier. It is treated as a normal identifier unless it is in modifier position.

But should it be treated as a normal identifier in this case?

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions