Open aeisenberg opened 11 years ago
Consider the following snippet:
function File(path) { this.path = path;} /** * @param {function(f:File):undefined} computer */ function pathFunc(computer) { } pathFunc(function(f) { });
Since we are now keeping track of parameter types, we have enough information to determine the type of the final f parameter.
f
Consider the following snippet:
Since we are now keeping track of parameter types, we have enough information to determine the type of the final
f
parameter.