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
Noticed this as I was writing some code. Issue is we check for empty object types in intersections, which currently causes resolution of object type members, which in turn causes unexpected circularities when the types have index signatures. We need to revise the empty object type check to not require member resolution (which really isn't necessary).
TypeScript Version: 4.0.0-dev
Code
Expected behavior:
No errors.
Actual behavior:
Error: Type alias 'Foo1' circularly references itself.
Playground Link:
https://www.typescriptlang.org/play/index.html?ssl=1&ssc=1&pln=3&pc=1#code/C4TwDgpgBAYg9nAjFAvFA3lAHgLigZ2ACcBLAOwHMoBfKAMgygG1coyBXAWwCMIiBdPPCQ0A3FAlQA9FKgBhEkQDG7ADYBDUqCh8icIgChQkWAgBMqRq0KlKNeoyYBpKOTZdeAoebESZUADk4HSI9QyA
The text was updated successfully, but these errors were encountered: