You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
svelte/packages/svelte/tests/compiler-errors/samples/runes-no-rune-each/_config.js

10 lines
301 B

import { test } from '../../test';
export default test({
error: {
code: 'state_invalid_placement',
message:
'`$state(...)` can only be used as a variable declaration initializer, a class field declaration, or the first assignment to a class field at the top level of the constructor.'
}
});