mirror of
https://github.com/hanzoai/tsgo.git
synced 2026-10-30 19:37:15 +00:00
34 lines
730 B
TypeScript
34 lines
730 B
TypeScript
//// [tests/cases/compiler/anyInferenceAnonymousFunctions.ts] ////
|
|
|
|
//// [anyInferenceAnonymousFunctions.ts]
|
|
var paired: any[];
|
|
|
|
paired.reduce(function (a1, a2) {
|
|
|
|
return a1.concat({});
|
|
|
|
} , []);
|
|
|
|
paired.reduce((b1, b2) => {
|
|
|
|
return b1.concat({});
|
|
} , []);
|
|
|
|
paired.reduce((b3, b4) => b3.concat({}), []);
|
|
|
|
paired.map((c1) => c1.count);
|
|
paired.map(function (c2) { return c2.count; });
|
|
|
|
//// [anyInferenceAnonymousFunctions.js]
|
|
"use strict";
|
|
var paired;
|
|
paired.reduce(function (a1, a2) {
|
|
return a1.concat({});
|
|
}, []);
|
|
paired.reduce((b1, b2) => {
|
|
return b1.concat({});
|
|
}, []);
|
|
paired.reduce((b3, b4) => b3.concat({}), []);
|
|
paired.map((c1) => c1.count);
|
|
paired.map(function (c2) { return c2.count; });
|