mirror of https://github.com/sveltejs/svelte
parent
a9d1f46dbb
commit
79be365d29
@ -0,0 +1,5 @@
|
||||
---
|
||||
'svelte': patch
|
||||
---
|
||||
|
||||
fix: error for rune usage in {@const} tag initialization
|
@ -0,0 +1,14 @@
|
||||
[
|
||||
{
|
||||
"code": "const_tag_invalid_rune_usage",
|
||||
"message": "Can't use $derived as initialization of a `{@const}` tag",
|
||||
"start": {
|
||||
"line": 2,
|
||||
"column": 15
|
||||
},
|
||||
"end": {
|
||||
"line": 2,
|
||||
"column": 26
|
||||
}
|
||||
}
|
||||
]
|
@ -0,0 +1,3 @@
|
||||
{#snippet test()}
|
||||
{@const der = $derived(0)}
|
||||
{/snippet}
|
Loading…
Reference in new issue