GeezerVisonThe World Wide Web, restored to 800 pixels of glory. |
| Home|About|Gaming cabinet|Archives|How it works|Starter sites |
GeezerVison is showing github.com — Auto-accessors named get or set consume the following class member across a newline · Issue #65674 · microsoft/TypeScript Backlog Description🔎 Search Termsaccessor 🕗 Version & Regression InformationReproduced in 5a757e9 ⏯ Playground LinkNo response 💻 CodeSave as class C { accessor get m() { return 42; } } Compile with: tsc --ignoreConfig --target es2022 --strict false --noEmit repro.tsThe same source also reproduces the problem as tsc --ignoreConfig --target es2022 --strict false --allowJs --checkJs --noEmit repro.js🙁 Actual behaviorBoth the TypeScript file and checked JavaScript file report: The parser constructs a getter named For JavaScript without tsc --ignoreConfig --target es2022 --strict false --allowJs --outDir out repro.jsThe emitted class is: class C { get m() { return 42; } } The intended auto-accessor named 🙂 Expected behaviorThe newline should allow automatic semicolon insertion after the auto-accessor named class C { accessor get; m() { return 42; } } That explicit-semicolon version compiles successfully and preserves both members. The decorators proposal’s The line-terminator restriction is between Additional information about the issueNo response Activity
MetadataMetadataAssigneesLabelsNo labels TypeProjectsMilestoneRelationshipsDevelopmentIssue actions |
| You are visitor 01402775 — GeezerVison does not store the pages you look up. Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required. |