TypeScript/tests/baselines/reference/functionTypeArgumentArrayAssignment.js

21 lines
350 B
JavaScript

//// [functionTypeArgumentArrayAssignment.ts]
module test {
interface Array<T> {
foo: T;
length: number;
}
function map<U>() {
var ys: U[] = [];
}
}
//// [functionTypeArgumentArrayAssignment.js]
var test;
(function (test) {
function map() {
var ys = [];
}
})(test || (test = {}));