-
Notifications
You must be signed in to change notification settings - Fork 13.3k
Unexpected circularly references error in VSCodeΒ #50795
Copy link
Copy link
Closed
Labels
BugA bug in TypeScriptA bug in TypeScriptFix AvailableA PR has been opened for this issueA PR has been opened for this issueNeeds InvestigationThis issue needs a team member to investigate its status.This issue needs a team member to investigate its status.RescheduledThis issue was previously scheduled to an earlier milestoneThis issue was previously scheduled to an earlier milestone
Milestone
Metadata
Metadata
Assignees
Labels
BugA bug in TypeScriptA bug in TypeScriptFix AvailableA PR has been opened for this issueA PR has been opened for this issueNeeds InvestigationThis issue needs a team member to investigate its status.This issue needs a team member to investigate its status.RescheduledThis issue was previously scheduled to an earlier milestoneThis issue was previously scheduled to an earlier milestone
Bug Report
π Search Terms
π Version & Regression Information
β― Playground Link
cannot reproduce in playground
π» Code
π Actual behavior
In vscode with TS version > 4.6.4 it reports
'Foo' is referenced directly or indirectly in its own type annotation.ts(2502). But it works well in the playground.This is first reported by @TechQuery in #50792 (comment), and I realize it may be related to #50161 and #50191 since the behavior is quite similar.
π Expected behavior
No error.