TypeScript/tests/cases/compiler/extendGenericArray2.ts

8 lines
126 B
TypeScript
Raw Normal View History

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