This is not a user visible bug, but a code health issue in the main branch - I was not sure how to best report this.
I am from Google and we have some patches to avoid dependency cycles in the TypeScript source (which our build system does not allow). As I think this cycle also makes the code harder to understand, and is relatively easy to fix, I will send a PR to see if you would be willing to have it resolved.