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

Argument name clash #911

Closed
Rich-Harris opened this issue Oct 29, 2017 · 1 comment
Closed

Argument name clash #911

Rich-Harris opened this issue Oct 29, 2017 · 1 comment
Labels

Comments

@Rich-Harris
Copy link
Member

REPL:

{{#each things.foo as foo}}
  <Foo :foo/>
{{/each}}

<script>
  export default {
    components: {
      Foo
    }
  };
</script>
// (1:0) {{#each things.foo as foo}}
function create_each_block(state, foo, foo, foo_index, component) {
  // ...
}

It's deconflicting things against foo, but not things.foo against foo.

esarbanis added a commit to esarbanis/svelte that referenced this issue Oct 31, 2017
Rich-Harris added a commit that referenced this issue Nov 12, 2017
Use a block scoped unique name for the context solves #911
@Rich-Harris
Copy link
Member Author

Fixed in 1.41.3 thanks to @esarbanis

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

No branches or pull requests

1 participant