0987ee9e0e
I don't see a reason for it, and it doesn't cause any tests to fail.
12 lines
267 B
TypeScript
12 lines
267 B
TypeScript
// @checkJs:true
|
|
// @declaration: true
|
|
// @outdir: out/
|
|
// @filename: typeTagNoErasure.js
|
|
/** @template T @typedef {<T1 extends T>(data: T1) => T1} Test */
|
|
|
|
/** @type {Test<number>} */
|
|
const test = dibbity => dibbity
|
|
|
|
test(1) // ok, T=1
|
|
test('hi') // error, T=number
|