You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
/** @template T */classCC{/** @param {T} t */constructor(t){}}/** @param {CC} cc */functionfoo(cc){}
Expected behavior:
Error, something like "Expected 1 type arguments, got 0".
Actual behavior:
Expected CC type arguments; provide these with an '@extends' tag.
The error message has 3 problems:
The error message is intended for classes only (class DD extends CC { ... })
The type isn't quoted.
The expected number of type arguments isn't given.
I think the fix is two-fold:
For parameters, go back to the normal error message.
For classes, give the number of expected type arguments instead of the class name, which is already given. Reading the code, I'm almost certain this is a bug in which the code chooses between multiple messages and then passes them all the same arguments.
The text was updated successfully, but these errors were encountered:
Expected behavior:
Error, something like "Expected 1 type arguments, got 0".
Actual behavior:
Expected CC type arguments; provide these with an '@extends' tag.
The error message has 3 problems:
class DD extends CC { ... }
)I think the fix is two-fold:
The text was updated successfully, but these errors were encountered: