module test { interface Array { foo: T; length: number; } function map() { var ys: U[] = []; } }