Open
Description
class B<T, U = number> {
t: T
u: U
}
class D extends B<string, string, string> {
~
Generic type B<T, U> requires between 1 and 2 type arguments.
d: number
}
let b = new B<string, string, string>()
~~~
Expected 1-2 type arguments, but got 3.
Expected behavior:
You get a wordier, less helpful message when incorrectly extending a base class. You get a terser, more detailed, message when incorrectly creating an instance of the base class.
Actual behavior:
Both messages should be the new terse, detailed message. I forgot to change this when I added the new message.