TypeScript/tests/baselines/reference/functionTypeArgumentArrayAssignment.js

16 lines
227 B
JavaScript
Raw Normal View History

2014-07-13 01:04:16 +02:00
//// [functionTypeArgumentArrayAssignment.ts]
interface Array<T> {
foo: T;
length: number;
}
function map<U>() {
var ys: U[] = [];
}
//// [functionTypeArgumentArrayAssignment.js]
function map() {
var ys = [];
}