checkJs error for indirect JSDoc param tag · Issue #19268 · microsoft/TypeScript (original) (raw)

TypeScript Version: 2.6.0-dev.20171015

// @ts-check

function Foo() { /** * @param {string} wat */ this.bar = function(wat) {

}

}

Expected: No error
Actual: JSDoc '@param' tag has name 'wat', but there is no parameter with that name.