10 lines
210 B
TypeScript
10 lines
210 B
TypeScript
// repro from #8166
|
|
interface Constructor<T> {
|
|
new(...args: any[]): T;
|
|
prototype: T;
|
|
}
|
|
|
|
class A<U> { a: U; }
|
|
class B<V> extends A<V> { b: V; }
|
|
var c:Constructor<B<boolean>> = B; // shouldn't error here
|