Skip to content

class parameter wrongly treated as soft keyword 'inline' #9046

Closed
@kpbochenek

Description

@kpbochenek

Example from dotr built from master:

scala> class C(x: String)
// defined class C

scala> class C(inline: String)
1 |class C(inline: String)
  |              ^
  |              an identifier expected, but ':' found

inline as I understand is soft keyword only allowed in inlined methods, here it should be treated as normal identifier?

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions