TypeScript/tests/baselines/reference/contextuallyTypeLogicalAnd01.js
2016-01-04 22:55:05 -05:00

12 lines
211 B
TypeScript

//// [contextuallyTypeLogicalAnd01.ts]
let x: (a: string) => string;
let y = true;
x = y && (a => a);
//// [contextuallyTypeLogicalAnd01.js]
var x;
var y = true;
x = y && (function (a) { return a; });