mirror of https://github.com/sveltejs/svelte
fix: error at compile time on duplicate snippet/declaration tag definitions (#18351)
parent
56013a2c01
commit
5b8db1be35
@ -0,0 +1,5 @@
|
||||
---
|
||||
'svelte': patch
|
||||
---
|
||||
|
||||
fix: error at compile time on duplicate snippet/declaration tag definitions
|
||||
@ -0,0 +1,14 @@
|
||||
[
|
||||
{
|
||||
"code": "declaration_duplicate",
|
||||
"message": "`foo` has already been declared",
|
||||
"start": {
|
||||
"line": 5,
|
||||
"column": 5
|
||||
},
|
||||
"end": {
|
||||
"line": 5,
|
||||
"column": 8
|
||||
}
|
||||
}
|
||||
]
|
||||
@ -0,0 +1,5 @@
|
||||
<script>
|
||||
let foo = 'bar';
|
||||
</script>
|
||||
|
||||
{let foo = 'baz'}
|
||||
@ -0,0 +1,14 @@
|
||||
[
|
||||
{
|
||||
"code": "declaration_duplicate",
|
||||
"message": "`foo` has already been declared",
|
||||
"start": {
|
||||
"line": 5,
|
||||
"column": 10
|
||||
},
|
||||
"end": {
|
||||
"line": 5,
|
||||
"column": 13
|
||||
}
|
||||
}
|
||||
]
|
||||
@ -0,0 +1,5 @@
|
||||
<script>
|
||||
let foo = 'bar';
|
||||
</script>
|
||||
|
||||
{#snippet foo()}baz{/snippet}
|
||||
Loading…
Reference in new issue