Skip to content

[CS2] Enhancement: Support object spread syntax in multiline objects without braces or commas #4600

Closed
@laurentpayot

Description

@laurentpayot
foo =
  a: 1
  b: 2

bar =
  foo...
  c: 3

results in

error: unexpected ...
	foo...
	   ^^^

For now we have to use:

bar = {
  foo...,
  c: 3
}

It's a bit ugly and it adds an exception to the nice CS way of object notation.

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions