TypeScript/tests/cases/conformance/jsdoc/checkJsdocTypeTag4.ts
Nathan Shively-Sanders 57e652dd02
Js/check type tags (#24967)
* Check the type expression of `@type` tags

* Update existing tests and baselines
2018-06-14 13:11:52 -07:00

17 lines
292 B
TypeScript

// @checkJs: true
// @allowJs: true
// @noEmit: true
// @Filename: t.d.ts
type A<T extends string> = { a: T }
// @Filename: test.js
/** Also should error for jsdoc typedefs
* @template {string} U
* @typedef {{ b: U }} B
*/
/** @type {A<number>} */
var a;
/** @type {B<number>} */
var b;