TypeScript/tests/cases/compiler/typeParameterWithInvalidConstraintType.ts

9 lines
164 B
TypeScript
Raw Normal View History

2014-07-13 01:04:16 +02:00
class A<T extends T> {
foo() {
var x: T;
var a = x.foo();
var b = new x(123);
var c = x[1];
var d = x();
}
}