Skip to content

Svelte 5: Cannot use rest arguments in snippets #11479

@ciscoheat

Description

@ciscoheat

Describe the bug

Using a rest argument for a parameter in a snippet leads to a compiler error.
snippet-rest

Reproduction

https://github.com/ciscoheat/s5-snippets-rest-args

Logs

No response

System Info

System:
    OS: Windows 10 10.0.19045
    CPU: (16) x64 Intel(R) Core(TM) i9-9900K CPU @ 3.60GHz
    Memory: 42.64 GB / 63.93 GB
  Binaries:
    Node: 21.4.0 - C:\Program Files\nodejs\node.EXE       
    Yarn: 1.22.21 - ~\AppData\Local\pnpm\yarn.CMD
    npm: 9.3.1 - C:\Program Files\nodejs\npm.CMD
    pnpm: 9.0.6 - ~\AppData\Local\pnpm\pnpm.CMD
    bun: 1.0.32 - ~\.bun\bin\bun.EXE
  Browsers:
    Edge: Chromium (123.0.2420.97)
    Internet Explorer: 11.0.19041.3636
  npmPackages:
    svelte: ^5.0.0-next.1 => 5.0.0-next.123

Severity

annoyance

Activity

changed the title [-]Cannot use rest arguments in snippets[/-] [+]Svelte 5: Cannot use rest arguments in snippets[/+] on May 5, 2024
dummdidumm

dummdidumm commented on May 5, 2024

@dummdidumm
Member

Closing as duplicate of #11178

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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

        Participants

        @ciscoheat@dummdidumm

        Issue actions

          Svelte 5: Cannot use rest arguments in snippets · Issue #11479 · sveltejs/svelte