mirror of https://github.com/sveltejs/svelte
Merge pull request #115 from nikku/validate-computed-prop
Verify computed property dependenciespull/120/head
commit
3935d05270
@ -0,0 +1,8 @@
|
|||||||
|
[{
|
||||||
|
"message": "A computed value must depend on at least one property",
|
||||||
|
"pos": 49,
|
||||||
|
"loc": {
|
||||||
|
"line": 4,
|
||||||
|
"column": 8
|
||||||
|
}
|
||||||
|
}]
|
@ -0,0 +1,7 @@
|
|||||||
|
<script>
|
||||||
|
export default {
|
||||||
|
computed: {
|
||||||
|
foo: () => {}
|
||||||
|
}
|
||||||
|
};
|
||||||
|
</script>
|
Loading…
Reference in new issue