Files
scriptc/tests/harness/__snapshots__/multiple-errors.ts.txt
T
Chris Tate 4e88c0d920 Parity bookkeeping for the new fixtures
- order-parity baselines re-record for corpus 2426-2430 (new entries only, no behavior moves)
- multiple-errors pins mixed-kind loose equality (same-kind == lowers now)
2026-07-23 01:05:22 -05:00

17 lines
619 B
Plaintext

multiple-errors.ts:8:13 - error SC1042: logical operators on mixed operand types are not supported yet
7 | }
8 | const bad = 1 && "mixed";
| ^~~~~~~~~~~~
9 | while (true) {
hint: give both operands the same type (number, string, or boolean)
multiple-errors.ts:13:13 - error SC1040: loose equality (== and !=) is not supported yet
12 | const anyone: unknown = 1;
13 | console.log(anyone == 1);
| ^~~~~~~~~~~
14 |
hint: use === / !== ('x == null' / 'x != null' — the null-or-undefined test — is supported; other loose comparisons need dynamic coercion semantics)