add regression test against #3966

pull/4013/head
Conduitry 5 years ago
parent d3cefd2bcb
commit afe06059bf

@ -0,0 +1,5 @@
<script>
export let value;
</script>
<slot value={value}/>

@ -0,0 +1,7 @@
export default {
html: `
<div>a a</div>
<div>b</div>
<div>a a</div>
`
};

@ -0,0 +1,16 @@
<script>
import Child from './Child.svelte';
const value = ['a'];
</script>
<div>
{value[0]}
{#each value as n}{n}{/each}
</div>
<div>
<Child value={['b']} let:value>{value[0]}</Child>
</div>
<div>
{value[0]}
{#each value as n}{n}{/each}
</div>
Loading…
Cancel
Save