mirror of https://github.com/sveltejs/svelte
fix: hoist snippets above const in same block (#17516)
* fix: hoist snippets above const in same block * fix: type errorpull/17518/head
parent
c1fab8caae
commit
d95887deb6
@ -0,0 +1,5 @@
|
||||
---
|
||||
'svelte': patch
|
||||
---
|
||||
|
||||
fix: hoist snippets above const in same block
|
||||
@ -0,0 +1,5 @@
|
||||
import { test } from '../../test';
|
||||
|
||||
export default test({
|
||||
test() {}
|
||||
});
|
||||
@ -0,0 +1,4 @@
|
||||
{#if true}
|
||||
{@const xx = test}
|
||||
{#snippet test()}{/snippet}
|
||||
{/if}
|
||||
Loading…
Reference in new issue