Closed
Description
/**
* @template {string} K
* @template V
*/
class MM {
constructor() {
/** @type {V} */
this.t;
}
}
Expected behavior:
Message: "K is declared but its value is never read"
Actual behavior:
Message: "All type parameters are unused."
Note that the message is the same if K
comes second. The code in checkUnusedTypeParameters looks suspicious where it tries to handle template tags, so it's probably just wrong.