Spread elements inside an object body don't need separators #276

Closed
opened 2025-12-30 01:23:07 +01:00 by adam · 0 comments
Owner

Originally created by @stackoverflow on GitHub (Feb 4, 2025).

Pkl requires that object members are separated by white space, semicolons or newlines, but this check is not working for spread syntax.

foo {
  1 2 3...IntSeq(4, 10)...IntSeq(11, 20)
}

This should fail with:

–– Pkl Error ––
Object members must be separated by whitespace, newline, or semicolon.
Originally created by @stackoverflow on GitHub (Feb 4, 2025). Pkl requires that object members are separated by white space, semicolons or newlines, but this check is not working for spread syntax. ```pkl foo { 1 2 3...IntSeq(4, 10)...IntSeq(11, 20) } ``` This should fail with: ```bash –– Pkl Error –– Object members must be separated by whitespace, newline, or semicolon. ```
adam closed this issue 2025-12-30 01:23:07 +01:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/pkl#276