๐ Search Terms
"symbolToNode", "stack overflow", "Maximum call stack size exceeded"
๐ Version & Regression Information
This is happening in v5, v6, and tsgo (I didn't check prior versions)
โฏ Playground Link
No response
๐ป Code
Coming from typescript-eslint/typescript-eslint#11947, I created a reproduction that's agnostic to ESLint:
export interface CustomNode<P> {
getNextNode: () => CustomNode<P>;
}
export declare const createNode: () => {
getNextNode: <T>() => CustomNode<T>;
};
function wrapNode<T>(getNode: () => CustomNode<T>) {
// ...
// Wrapping logic here
// ...
return getNode;
}
wrapNode(() => {
const node = createNode();
return wrapNode<typeof node.getNextNode<any>>(node.getNextNode);
});
Full Repro and more details: https://github.com/StyleShit/repros/tree/main/ts-symbolToNode-stack-overflow
๐ Actual behavior
Running tsc is failing with "Maximum call stack size exceeded" error
๐ Expected behavior
Running tsc should not fail
Additional information about the issue
No response
๐ Search Terms
"symbolToNode", "stack overflow", "Maximum call stack size exceeded"
๐ Version & Regression Information
This is happening in v5, v6, and tsgo (I didn't check prior versions)
โฏ Playground Link
No response
๐ป Code
Coming from typescript-eslint/typescript-eslint#11947, I created a reproduction that's agnostic to ESLint:
Full Repro and more details: https://github.com/StyleShit/repros/tree/main/ts-symbolToNode-stack-overflow
๐ Actual behavior
Running
tscis failing with "Maximum call stack size exceeded" error๐ Expected behavior
Running
tscshould not failAdditional information about the issue
No response