TypeScript/tests/baselines/reference/functionTypeArgumentArrayAssignment.js

21 lines
350 B
JavaScript
Raw Normal View History

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