TypeScript/tests/cases/compiler/typeParameterWithInvalidConstraintType.ts
2014-07-12 17:30:19 -07:00

10 lines
No EOL
210 B
TypeScript

class A<T extends T> {
foo() {
var x: T;
// no error expected below this line
var a = x.foo();
var b = new x(123);
var c = x[1];
var d = x();
}
}