mirror of https://github.com/sveltejs/svelte
make sure a hoistable name is not also a shadowed name rendering an expression - fixes #2002
parent
3ec5ff77eb
commit
33131d0b70
@ -0,0 +1,3 @@
|
|||||||
|
export default {
|
||||||
|
html: '(alpaca)(baboon)(capybara)'
|
||||||
|
};
|
@ -0,0 +1,8 @@
|
|||||||
|
{#each animals as animal}
|
||||||
|
({animal})
|
||||||
|
{/each}
|
||||||
|
|
||||||
|
<script>
|
||||||
|
let animal = 'lemur';
|
||||||
|
let animals = ['alpaca', 'baboon', 'capybara'];
|
||||||
|
</script>
|
Loading…
Reference in new issue