TypeScript/tests/cases/compiler/genericInheritedDefaultConstructors.ts
Nathan Shively-Sanders 60b8d0a7a3 Clean up tests a bit
2016-05-20 10:20:02 -07:00

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