10 lines
No EOL
210 B
TypeScript
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();
|
|
}
|
|
} |