mirror of https://github.com/sveltejs/svelte
Add a test to detect issue #4120.pull/4102/head
parent
231d45730b
commit
53b5f1aac6
@ -0,0 +1,8 @@
|
|||||||
|
export default {
|
||||||
|
html: `
|
||||||
|
<p>OK</p>
|
||||||
|
<p>OK</p>
|
||||||
|
<pre>one</pre>
|
||||||
|
<pre>two</pre>
|
||||||
|
`
|
||||||
|
};
|
@ -0,0 +1,13 @@
|
|||||||
|
<script>
|
||||||
|
let a = () => true;
|
||||||
|
export let data = [{ foo: [{ foo: [{bar: "one"}, {bar: "two"}] }] }];
|
||||||
|
</script>
|
||||||
|
|
||||||
|
{#each data as datum}
|
||||||
|
{#if datum.foo && a()}
|
||||||
|
<p>OK</p>
|
||||||
|
<svelte:self data={datum.foo}/>
|
||||||
|
{:else}
|
||||||
|
<pre>{datum.bar}</pre>
|
||||||
|
{/if}
|
||||||
|
{/each}
|
Loading…
Reference in new issue