Skip to content

Commit 3651b6a

Browse files
committed
Another test testing scopes and vars without statement list
1 parent ffd22ae commit 3651b6a

File tree

2 files changed

+27
-0
lines changed

2 files changed

+27
-0
lines changed
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
export default {
2+
html: '<p>3</p><p>4</p><p>5</p>'
3+
};
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
<script>
2+
import { writable } from "svelte/store";
3+
4+
{
5+
{
6+
if (true) var a = writable(3);
7+
}
8+
9+
if (true) var b = writable(4);
10+
}
11+
12+
{
13+
if (true)
14+
var c = writable(5);
15+
}
16+
17+
var x = $a;
18+
var y = $b;
19+
var z = $c;
20+
</script>
21+
22+
<p>{x}</p>
23+
<p>{y}</p>
24+
<p>{z}</p>

0 commit comments

Comments
 (0)