-
Notifications
You must be signed in to change notification settings - Fork 12.9k
Closed
Labels
BugA bug in TypeScriptA bug in TypeScriptCrashFor flagging bugs which are compiler or service crashes or unclean exits, rather than bad outputFor flagging bugs which are compiler or service crashes or unclean exits, rather than bad output
Milestone
Description
Search Terms:
"excessive depth"
"generic partial"
Code
const fn = <T>(arg: T) => {
((arg2: RecursivePartial<T>) => {
// ...
})(arg); // <-- here
};
type RecursivePartial<T> = {
[P in keyof T]?: RecursivePartial<T[P]>;
};
Expected behavior:
Comparing a generic with a partial of that generic working without errors.
Actual behavior:
Getting "Excessive stack depth comparing types 'T' and 'RecursivePartial'." since upgrading to 2.7.x. (Also errors in 2.8.x). Working in 2.6.1.
Related Issues:
None?
Conaclos, Benno007, Yaojian, Waldo000000, ianwsperber and 20 moreanodynos
Metadata
Metadata
Assignees
Labels
BugA bug in TypeScriptA bug in TypeScriptCrashFor flagging bugs which are compiler or service crashes or unclean exits, rather than bad outputFor flagging bugs which are compiler or service crashes or unclean exits, rather than bad output