mirror of https://github.com/sveltejs/svelte
parent
6ea89a3f7e
commit
adc3f7a4ef
@ -0,0 +1,8 @@
|
||||
import { test } from '../../test';
|
||||
|
||||
export default test({
|
||||
error: {
|
||||
code: 'invalid-bindable-location',
|
||||
message: '$bindable() can only be used inside a $props() declaration'
|
||||
}
|
||||
});
|
||||
@ -0,0 +1,3 @@
|
||||
<script>
|
||||
const { a = $bindable() } = $state();
|
||||
</script>
|
||||
@ -0,0 +1 @@
|
||||
const { a = $bindable() } = $state();
|
||||
Loading…
Reference in new issue