Skip to content

Comma in extends or derives clause treated as parameter separator in indentation blocks #22527

Open
@s5bug

Description

@s5bug

Compiler version

3.3.5
3.6.3
3.6.4-RC1

Minimized code

identity(
  identity:
    class X extends AnyRef, Serializable
    ???
)

Output

',' or ')' expected, but identifier found

Expectation

With braces, this code compiles:

identity(
  identity {
    class X extends AnyRef, Serializable
    ???
  }
)

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions