12 lines
211 B
TypeScript
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; });
|