TypeScript/tests/baselines/reference/inferentialTypingWithFunctionType2.js
2014-07-12 17:30:19 -07:00

12 lines
258 B
JavaScript

//// [inferentialTypingWithFunctionType2.ts]
function identity<A>(a: A): A {
return a;
}
var x = [1, 2, 3].map(identity)[0];
//// [inferentialTypingWithFunctionType2.js]
function identity(a) {
return a;
}
var x = [1, 2, 3].map(identity)[0];