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
/** @type {function(string): void} */constfunc=(value)=>{// ...}// Following line should raise an error as 'func' invocation// is missing required parameter, but it doesn't happen.func();
Expected behavior:
An error Expected 1 argument, but got 0. should be thrown.
Actual behavior:
No error is thrown. TypeScript allows to invoke former function without passing arguments to it.
The text was updated successfully, but these errors were encountered:
TypeScript Version: 2.8.0-dev.20180220
Search Terms:
Code
Expected behavior:
An error
Expected 1 argument, but got 0.
should be thrown.Actual behavior:
No error is thrown. TypeScript allows to invoke former function without passing arguments to it.
The text was updated successfully, but these errors were encountered: