Object literal completions in declaration initializer include declared variable #41731
Labels
Bug
A bug in TypeScript
Domain: Completion Lists
The issue relates to showing completion lists in an editor
Effort: Moderate
Requires experience with the TypeScript codebase, but feasible. Harder than "Effort: Casual".
Help Wanted
You can do this
Milestone
TypeScript Version: 4.1.2
Search Terms: object literal completions
Code
Expected behavior: No completion for
obj
, because that would be a used-before-declared errorActual behavior: Completion for
obj
offeredPlayground Link: https://www.typescriptlang.org/play?#code/MYewdgzgLgBCBGArGBeGBvGAHATiLAXHDAL4DcQA
Related Issues: #41539
The text was updated successfully, but these errors were encountered: