Closed
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?