add regression test against #3966

pull/7738/head
Conduitry 6 years ago
parent 1f98d4bfd5
commit 2b967c041b

@ -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