Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

disallow simultaneous foo / {foo} / bind:foo #4343

Merged
merged 3 commits into from
Jan 30, 2020

Conversation

Conduitry
Copy link
Member

Fixes #4325 by making such code a compile-time error. foo, {foo}, and bind:foo are now mutually exclusive, on elements or components.

Note that bind:this and this are allowed to co-exist, as <svelte:component bind:this={foo} this={bar}/> is perfectly valid.

@Conduitry Conduitry merged commit 5076613 into sveltejs:master Jan 30, 2020
@Conduitry Conduitry deleted the gh-4325 branch January 30, 2020 14:25
jesseskinner pushed a commit to jesseskinner/svelte that referenced this pull request Feb 27, 2020
* disallow matching attributes/shorthands/bindings (sveltejs#4325)

* add tests

* update changelog
taylorzane pushed a commit to taylorzane/svelte that referenced this pull request Dec 17, 2020
* disallow matching attributes/shorthands/bindings (sveltejs#4325)

* add tests

* update changelog
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Infinite loop while binding an array to a child component
1 participant