TypeScript/tests/cases/compiler/genericTypeConstraints.ts
David Li 49be653a25 Added test case for invalid generic type constraints
Signed-off-by: David Li <jiawei.davidli@gmail.com>
2015-06-10 20:22:59 -04:00

13 lines
176 B
TypeScript

class Foo {
fooMethod() {}
}
class FooExtended { }
class Bar<T extends Foo> { }
class BarExtended extends Bar<FooExtended> {
constructor() {
super();
}
}