Skip to content

Commit f2f3c8b

Browse files
committed
wip
1 parent fb052be commit f2f3c8b

File tree

3 files changed

+11
-1
lines changed

3 files changed

+11
-1
lines changed

packages/svelte/tests/migrate/samples/derivations/input.svelte

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,11 @@
66
// no semicolon at the end
77
$: time_8 = count * 8
88
$: ({ time_16 } = { time_16: count * 16 })
9+
// preceeding let that doesn't do anything
10+
let time_32;
11+
$: time_32 = count * doubled;
12+
let very_high;
13+
$: very_high = time_32 * count;
914
</script>
1015

1116
{count} / {doubled} / {quadrupled} / {time_8} / {time_16}

packages/svelte/tests/migrate/samples/effects/input.svelte

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,4 +10,7 @@
1010
console.log('bar');
1111
}
1212
$: $count = 1;
13+
$: $count.x = count;
1314
</script>
15+
16+
<button onclick={() => count++}>increment</button>

packages/svelte/tests/migrate/samples/effects/output.svelte

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,4 +18,6 @@
1818
run(() => {
1919
$count = 1;
2020
});
21-
</script>
21+
</script>
22+
23+
<button onclick={() => count++}>increment</button>

0 commit comments

Comments
 (0)