mirror of https://github.com/sveltejs/svelte
Merge pull request #2003 from sveltejs/gh-2002
Make sure a hoistable name is not also shadowed when rendering and expr - #2002pull/2007/head
commit
82f4ae6643
@ -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>
|
@ -0,0 +1,3 @@
|
||||
export default {
|
||||
html: `<p>(42)(99)</p>`
|
||||
};
|
@ -0,0 +1,9 @@
|
||||
<script context="module">
|
||||
const foo = 42;
|
||||
</script>
|
||||
|
||||
<script>
|
||||
export let bar = 99;
|
||||
</script>
|
||||
|
||||
<p>({foo})({bar})</p>
|
Loading…
Reference in new issue