TypeScript/tests/cases/compiler/contextualTypeLogicalOr.ts

18 lines
383 B
TypeScript
Raw Normal View History

2017-08-31 02:14:16 +02:00
// 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];