Skip to content

Spurious [?] circularity error in getter with spread #48178

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

typeBox={content?: Foo|Box};declareconstb: Box;classFoo{getfoo(){return{content: thisasFoo|Box,
...b};}}

🙁 Actual behavior

Circularity error on 'foo' when this is probably deferrable

🙂 Expected behavior

No circularity error

Ref. #46981

Metadata

Metadata

Assignees

No one assigned

    Labels

    Needs InvestigationThis issue needs a team member to investigate its status.

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions