TypeScript/tests/cases/compiler/genericInheritedDefaultConstructors.ts

10 lines
210 B
TypeScript
Raw Normal View History

2016-05-20 19:20:02 +02:00
// 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; }
2016-05-20 19:20:02 +02:00
var c:Constructor<B<boolean>> = B; // shouldn't error here