-
Notifications
You must be signed in to change notification settings - Fork 13k
Closed
Labels
Milestone
Description
var a: { foo: typeof a; }
a
has a recursive type. If we try to print this type, it prints { foo: any; }
, but it does not behave as such in type comparisons. So we are lying when we print it.
When fixing this, it's important to consider both displaying a type to the user, and generating .d.ts files.