TypeScript/tests/cases/compiler/contextualTypeLogicalOr.ts
2017-08-30 17:14:16 -07:00

18 lines
383 B
TypeScript

// Repro from #18005
let x = 123;
var a =
x && [1, 2, 3, 4] ||
x && [1, 2, 3, 4] ||
x && [1, 2, 3, 4] ||
x && [1, 2, 3, 4] ||
x && [1, 2, 3, 4] ||
x && [1, 2, 3, 4] ||
x && [1, 2, 3, 4] ||
x && [1, 2, 3, 4] ||
x && [1, 2, 3, 4] ||
x && [1, 2, 3, 4] ||
x && [1, 2, 3, 4] ||
x && [1, 2, 3, 4] ||
x && [1, 2, 3, 4];