mirror of https://github.com/sveltejs/svelte
disallow `slot` as a prop name in inline components (#2019)
parent
b1d919f3f2
commit
67af1a203e
@ -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