We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
Is it intended behavior ?
function x(f: (g: number) => void): void { f(1); } x(function (d) { // d is number });
Adding parentheses around the function makes 'd' to be any type:
function x(f: (g: number) => void): void { f(1); } x((function (d) { // d is any }));