mirror of https://github.com/sveltejs/svelte
parent
71d604b67e
commit
57b9fa32f9
@ -0,0 +1,5 @@
|
||||
export default {
|
||||
html: `
|
||||
<p>bar</p>
|
||||
`
|
||||
};
|
@ -0,0 +1,7 @@
|
||||
<script>
|
||||
const foo = [{ in: 'bar' }];
|
||||
</script>
|
||||
|
||||
{#each foo as { in: bar }}
|
||||
<p>{bar}</p>
|
||||
{/each}
|
@ -0,0 +1,15 @@
|
||||
[{
|
||||
"code": "unexpected-reserved-word",
|
||||
"message": "'case' is a reserved word in JavaScript and cannot be used here",
|
||||
"start": {
|
||||
"line": 1,
|
||||
"column": 18,
|
||||
"character": 18
|
||||
},
|
||||
"end": {
|
||||
"line": 1,
|
||||
"column": 18,
|
||||
"character": 18
|
||||
},
|
||||
"pos": 18
|
||||
}]
|
@ -0,0 +1,3 @@
|
||||
{#each cases as { case }}
|
||||
{case.title}
|
||||
{/each}
|
Loading…
Reference in new issue