21 lines
374 B
Plaintext
21 lines
374 B
Plaintext
=== tests/cases/conformance/jsdoc/t.d.ts ===
|
|
type A<T extends string> = { a: T }
|
|
>A : A<T>
|
|
>T : T
|
|
>a : T
|
|
>T : T
|
|
|
|
=== tests/cases/conformance/jsdoc/test.js ===
|
|
/** Also should error for jsdoc typedefs
|
|
* @template {string} U
|
|
* @typedef {{ b: U }} B
|
|
*/
|
|
/** @type {A<number>} */
|
|
var a;
|
|
>a : A<number>
|
|
|
|
/** @type {B<number>} */
|
|
var b;
|
|
>b : { b: number; }
|
|
|