mirror of https://github.com/sveltejs/svelte
fix: move labeled statements that need reordering after props insertion point (#13480)
parent
344808a719
commit
073ef17028
@ -0,0 +1,5 @@
|
||||
---
|
||||
'svelte': patch
|
||||
---
|
||||
|
||||
fix: move labeled statements that need reordering after props insertion point
|
@ -0,0 +1,7 @@
|
||||
<script>
|
||||
export let readonly;
|
||||
$: writable = !readonly;
|
||||
export let optional = 'foo';
|
||||
</script>
|
||||
|
||||
{readonly} {optional} {writable}
|
@ -0,0 +1,7 @@
|
||||
<script>
|
||||
/** @type {{readonly: any, optional?: string}} */
|
||||
let { readonly, optional = 'foo' } = $props();
|
||||
let writable = $derived(!readonly);
|
||||
</script>
|
||||
|
||||
{readonly} {optional} {writable}
|
Loading…
Reference in new issue