You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// A *self-contained* demonstration of the problem follows.// Ditto for null, haven't tested with 'never' ...functionfoo(value: undefined){returnvalue;}
Expected behavior:
Should produce syntactically valid JavaScript.
Actual behavior:
Instead this is emitted by the compiler:
functionfoo(value: ){returnvalue;}
resulting in runtime error:
function foo(value: ) {
^
SyntaxError: Unexpected token :