mirror of
https://github.com/swc-project/swc.git
synced 2024-12-19 11:42:13 +03:00
82 lines
1.4 KiB
TypeScript
82 lines
1.4 KiB
TypeScript
// @strictNullChecks: true
|
|
|
|
const a = [0];
|
|
const s = "";
|
|
const x = 0;
|
|
const b = false;
|
|
const v: void = undefined;
|
|
const u = undefined;
|
|
const n = null;
|
|
const z = s || x || u;
|
|
|
|
const a1 = a && a;
|
|
const a2 = a && s;
|
|
const a3 = a && x;
|
|
const a4 = a && b;
|
|
const a5 = a && v;
|
|
const a6 = a && u;
|
|
const a7 = a && n;
|
|
const a8 = a && z;
|
|
|
|
const s1 = s && a;
|
|
const s2 = s && s;
|
|
const s3 = s && x;
|
|
const s4 = s && b;
|
|
const s5 = s && v;
|
|
const s6 = s && u;
|
|
const s7 = s && n;
|
|
const s8 = s && z;
|
|
|
|
const x1 = x && a;
|
|
const x2 = x && s;
|
|
const x3 = x && x;
|
|
const x4 = x && b;
|
|
const x5 = x && v;
|
|
const x6 = x && u;
|
|
const x7 = x && n;
|
|
const x8 = x && z;
|
|
|
|
const b1 = b && a;
|
|
const b2 = b && s;
|
|
const b3 = b && x;
|
|
const b4 = b && b;
|
|
const b5 = b && v;
|
|
const b6 = b && u;
|
|
const b7 = b && n;
|
|
const b8 = b && z;
|
|
|
|
const v1 = v && a;
|
|
const v2 = v && s;
|
|
const v3 = v && x;
|
|
const v4 = v && b;
|
|
const v5 = v && v;
|
|
const v6 = v && u;
|
|
const v7 = v && n;
|
|
const v8 = v && z;
|
|
|
|
const u1 = u && a;
|
|
const u2 = u && s;
|
|
const u3 = u && x;
|
|
const u4 = u && b;
|
|
const u5 = u && v;
|
|
const u6 = u && u;
|
|
const u7 = u && n;
|
|
const u8 = u && z;
|
|
|
|
const n1 = n && a;
|
|
const n2 = n && s;
|
|
const n3 = n && x;
|
|
const n4 = n && b;
|
|
const n5 = n && v;
|
|
const n6 = n && u;
|
|
const n7 = n && n;
|
|
const n8 = n && z;
|
|
|
|
const z1 = z && a;
|
|
const z2 = z && s;
|
|
const z3 = z && x;
|
|
const z4 = z && b;
|
|
const z5 = z && v;
|
|
const z6 = z && u;
|
|
const z7 = z && n;
|
|
const z8 = z && z; |