Skip to content

[Bug] Varargs cannot be placed into array literals #197

@SkyyySi

Description

@SkyyySi

Currently, this is valid:

f = (...) ->
    argv = { ... }

This behavior should also extend to array literals. However, it currently does not, so the below code is a syntax error:

f = (...) ->
    argv = [ ... ]

The produced error:

1: short dot/colon and indexing syntax must be called within a with block
    argv = [ ... ]
             ^

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions