mirror of https://github.com/sveltejs/svelte
Merge pull request #2020 from sveltejs/gh-2019
disallow `slot` as a prop name in inline componentspull/2021/head
commit
66d0c288ca
@ -0,0 +1,15 @@
|
|||||||
|
[{
|
||||||
|
"code": "invalid-prop",
|
||||||
|
"message": "'slot' is reserved for future use in named slots",
|
||||||
|
"start": {
|
||||||
|
"line": 5,
|
||||||
|
"column": 8,
|
||||||
|
"character": 65
|
||||||
|
},
|
||||||
|
"end": {
|
||||||
|
"line": 5,
|
||||||
|
"column": 18,
|
||||||
|
"character": 75
|
||||||
|
},
|
||||||
|
"pos": 65
|
||||||
|
}]
|
@ -0,0 +1,5 @@
|
|||||||
|
<script>
|
||||||
|
import Widget from './Widget.html';
|
||||||
|
</script>
|
||||||
|
|
||||||
|
<Widget slot='foo'/>
|
Loading…
Reference in new issue