Open brunnerh opened 1 week ago
Snippets are available anywhere in their scope. The language tools falsely surface errors if the order of definition and usage is reversed on the same level.
<script> const address = null; </script> <div> {@render (address ?? defaultAddress)()} {#snippet defaultAddress()}Unknown address{/snippet} </div>
Variable 'defaultAddress' is used before being assigned. js(2454)
No error.
No response
Top level snippets are hoisted to the top, guess we need to do that for nested snippets, too (top of their scope)
Describe the bug
Snippets are available anywhere in their scope. The language tools falsely surface errors if the order of definition and usage is reversed on the same level.
Reproduction
Expected behaviour
No error.
System Info
Which package is the issue about?
No response
Additional Information, eg. Screenshots
No response