Property autocompletion includes Symbol
when object has a well-known symbol as key
#52268
Labels
Bug
A bug in TypeScript
Domain: Completion Lists
The issue relates to showing completion lists in an editor
Help Wanted
You can do this
Milestone
Bug Report
π Search Terms
property autocompletion symbol well-known
π Version & Regression Information
TypeScript 4.9.4
β― Playground Link
Playground link with relevant code
Sorry but please note that I wasn't able to reproduce the issue on the playground. The issue was reproducible on my VSCode 1.74.3, with extensions disabled, and TypeScript 4.9.4.
π» Code
tsconfig.json:
π Actual behavior
Symbol
is shown as a autocompletion candidate.Selecting it produces
obj[Symbol]
which isn't correct.π Expected behavior
Should offer
Symbol.asyncIterator
.The text was updated successfully, but these errors were encountered: