### π Search Terms 'arguments' is not allowed in class field initializer or static initialization block ### β― Playground Link <!-- A link to a TypeScript Playground "Share" link which shows this behavior The TypeScript Workbench can be used for more complex setups, try https://www.typescriptlang.org/dev/bug-workbench/ As a last resort, you can link to a repo, but these will be slower for us to investigate. --> [Playground link with relevant code](https://www.typescriptlang.org/play?#code/GYVwdgxgLglg9mABATQBQEpEG8CwAoRQxAJwFMoRikIAbAQwGcHEAVbfIzuxAXkTuIBzEAFtSYKAw5EAvvjl4gA) ### π» Code <!-- Please post the relevant code sample here as well--> ```ts function Y() { return class T { a = arguments } } ``` ### π Actual behavior No error ### π Expected behavior TS Error: 'arguments' is not allowed in class field initializer or static initialization block  https://tc39.es/ecma262/multipage/ecmascript-language-functions-and-classes.html#sec-class-definitions-static-semantics-early-errors ``` FieldDefinition : ClassElementName Initializer[opt] It is a Syntax Error if Initializer is present and ContainsArguments of Initializer is true. ```