-
Notifications
You must be signed in to change notification settings - Fork 12.9k
Closed
Labels
Needs InvestigationThis issue needs a team member to investigate its status.This issue needs a team member to investigate its status.
Milestone
Description
Bug Report
π Search Terms
circularity getter
π Version & Regression Information
- This is the behavior in every version I tried
β― Playground Link
Playground link with relevant code
π» Code
type Box = {
content?: Foo | Box
};
declare const b: Box;
class Foo {
get foo() {
return {
content: this as Foo | Box,
...b
};
}
}
π Actual behavior
Circularity error on 'foo' when this is probably deferrable
π Expected behavior
No circularity error
Ref. #46981
Metadata
Metadata
Assignees
Labels
Needs InvestigationThis issue needs a team member to investigate its status.This issue needs a team member to investigate its status.