You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This starts a type resolution that ends up with a cycle because getSpreadType tries to create a union of the left type and the right type here. The problem is that this is a subject of subtype union reduction and this find(getPropertiesOfType(source), p => isUnitType(getTypeOfSymbol(p))) leads to requesting the get foo's type while we are still resolving it.
Probably there is a way to defer this but it's not that easy at the moment. Usually, unannotated getters should participate in this find.
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
The text was updated successfully, but these errors were encountered: