mirror of https://github.com/sveltejs/svelte
allow class/function expressions in tags (#18324)
We shouldn't error on encountering `class` and `function`, because they are treated as expressions rather than declarationspull/18315/head
parent
6a955758a6
commit
6d26dce265
@ -1,14 +1 @@
|
||||
[
|
||||
{
|
||||
"code": "declaration_tag_invalid_type",
|
||||
"message": "Declaration tags must be `let` or `const` declarations",
|
||||
"start": {
|
||||
"line": 2,
|
||||
"column": 2
|
||||
},
|
||||
"end": {
|
||||
"line": 2,
|
||||
"column": 10
|
||||
}
|
||||
}
|
||||
]
|
||||
[]
|
||||
|
||||
Loading…
Reference in new issue