π 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