TypeScript/tests/cases/compiler/extendGenericArray.ts

6 lines
93 B
TypeScript
Raw Normal View History

2014-07-13 01:04:16 +02:00
interface Array<T> {
foo(): T;
}
var arr: string[] = [];
var x: number = arr.foo();