mirror of https://github.com/sveltejs/svelte
Merge pull request #2408 from sveltejs/gh-2301
better error for bindings to let: valuespull/2411/head
commit
7fcad18f2a
@ -0,0 +1,15 @@
|
||||
[{
|
||||
"code": "invalid-binding",
|
||||
"message": "Cannot bind to a variable declared with the let: directive",
|
||||
"pos": 52,
|
||||
"start": {
|
||||
"line": 6,
|
||||
"column": 8,
|
||||
"character": 52
|
||||
},
|
||||
"end": {
|
||||
"line": 6,
|
||||
"column": 24,
|
||||
"character": 68
|
||||
}
|
||||
}]
|
@ -0,0 +1,7 @@
|
||||
<script>
|
||||
let Foo;
|
||||
</script>
|
||||
|
||||
<Foo let:bar>
|
||||
<input bind:value={bar}>
|
||||
</Foo>
|
Loading…
Reference in new issue