Add test for non-writable binding check

pull/4506/head
Michal Vlasák 6 years ago
parent 912c8bad38
commit 49d9a28a9f

@ -0,0 +1,15 @@
[{
"code": "invalid-binding",
"message": "Cannot bind to a variable which is not writable",
"pos": 61,
"start": {
"line": 5,
"column": 19,
"character": 61
},
"end": {
"line": 5,
"column": 24,
"character": 66
}
}]

@ -0,0 +1,5 @@
<script>
const dummy = 'foo';
</script>
<input bind:value={dummy}>
Loading…
Cancel
Save