TypeScript/tests/cases/compiler/jsdocFunctionTypeFalsePositive.ts
Andy 735a46f838
If parsing a function type fails, parseTypeReference() to ensure something is returned (#24567)
* If parsing a function type fails, parseTypeReference() to ensure something is returned

* Avoid tryParse

* Add missing semicolon

* Don't check for undefined, check for missing type

* Don't set parameters undefined, set to missingList and return false

* Update API baselines

* Code review
2018-06-05 10:24:37 -07:00

8 lines
118 B
TypeScript

// @allowJs: true
// @checkJs: true
// @noEmit: true
// @Filename: /a.js
/** @param {<} x */
function f(x) {}