mirror of https://github.com/sveltejs/svelte
parent
573b9f1d74
commit
87a420f64d
@ -0,0 +1,5 @@
|
||||
---
|
||||
"svelte": patch
|
||||
---
|
||||
|
||||
feat: error when snippet shadow a prop
|
@ -0,0 +1,14 @@
|
||||
[
|
||||
{
|
||||
"code": "snippet_shadowing_prop",
|
||||
"message": "This snippet is shadowing the prop `title` with the same name",
|
||||
"start": {
|
||||
"column": 1,
|
||||
"line": 6
|
||||
},
|
||||
"end": {
|
||||
"column": 11,
|
||||
"line": 8
|
||||
}
|
||||
}
|
||||
]
|
@ -0,0 +1,9 @@
|
||||
<script>
|
||||
import Component from "./Component.svelte";
|
||||
</script>
|
||||
|
||||
<Component title="">
|
||||
{#snippet title()}
|
||||
title
|
||||
{/snippet}
|
||||
</Component>
|
Loading…
Reference in new issue