Skip to content

let-binding fails when multiple elements are assigned to the same slot #4135

Closed
@mdempsky

Description

@mdempsky

Describe the bug
If two elements are assigned to the same slot, let bindings on the first element are syntactically accepted, but don't actually introduce any bindings.

To Reproduce
https://svelte.dev/repl/193a784e481947979ee20f97a8fc8200?version=3.16.5

Expected behavior
The output should be:

A X
X
X
B X

but instead it's

undefined X
X
X
B X

Alternatively, a compiler error would be acceptable.

Severity
Low.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions