57e652dd02
* Check the type expression of `@type` tags * Update existing tests and baselines
17 lines
292 B
TypeScript
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;
|