mirror of
https://github.com/vercel-labs/scriptc.git
synced 2026-10-24 06:14:01 +08:00
- 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)
17 lines
619 B
Plaintext
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) |