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
Bug Report
π Search Terms
circularity getter
π Version & Regression Information
β― Playground Link
Playground link with relevant code
π» Code
π Actual behavior
Circularity error on 'foo' when this is probably deferrable
π Expected behavior
No circularity error
Ref. #46981