Use function parameter types to infer the types of arguments passed into the function #240

aeisenberg opened this Issue Feb 27, 2013 · 0 comments


None yet

1 participant


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.

@aeisenberg aeisenberg was assigned Feb 27, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment