|
1 | 1 | tests/cases/compiler/parseBigInt.ts(51,20): error TS2736: Operator '+' cannot be applied to type '123n'.
|
2 | 2 | tests/cases/compiler/parseBigInt.ts(52,23): error TS2736: Operator '+' cannot be applied to type '291n'.
|
3 | 3 | tests/cases/compiler/parseBigInt.ts(56,25): error TS1005: ',' expected.
|
4 |
| -tests/cases/compiler/parseBigInt.ts(57,25): error TS1351: An identifier or keyword cannot immediately follow a numeric literal. |
5 |
| -tests/cases/compiler/parseBigInt.ts(58,22): error TS1351: An identifier or keyword cannot immediately follow a numeric literal. |
6 |
| -tests/cases/compiler/parseBigInt.ts(59,28): error TS1351: An identifier or keyword cannot immediately follow a numeric literal. |
| 4 | +tests/cases/compiler/parseBigInt.ts(57,25): error TS1352: A bigint literal cannot use exponential notation. |
| 5 | +tests/cases/compiler/parseBigInt.ts(58,22): error TS1353: A bigint literal must be an integer. |
| 6 | +tests/cases/compiler/parseBigInt.ts(59,28): error TS1353: A bigint literal must be an integer. |
7 | 7 | tests/cases/compiler/parseBigInt.ts(60,23): error TS1177: Binary digit expected.
|
8 | 8 | tests/cases/compiler/parseBigInt.ts(61,20): error TS1178: Octal digit expected.
|
9 | 9 | tests/cases/compiler/parseBigInt.ts(62,20): error TS1125: Hexadecimal digit expected.
|
@@ -82,13 +82,13 @@ tests/cases/compiler/parseBigInt.ts(70,72): error TS2345: Argument of type '3' i
|
82 | 82 | !!! error TS1005: ',' expected.
|
83 | 83 | { const scientific = 1e2n; }
|
84 | 84 | ~
|
85 |
| -!!! error TS1351: An identifier or keyword cannot immediately follow a numeric literal. |
| 85 | +!!! error TS1352: A bigint literal cannot use exponential notation. |
86 | 86 | { const decimal = 4.1n; }
|
87 | 87 | ~
|
88 |
| -!!! error TS1351: An identifier or keyword cannot immediately follow a numeric literal. |
| 88 | +!!! error TS1353: A bigint literal must be an integer. |
89 | 89 | { const leadingDecimal = .1n; }
|
90 | 90 | ~
|
91 |
| -!!! error TS1351: An identifier or keyword cannot immediately follow a numeric literal. |
| 91 | +!!! error TS1353: A bigint literal must be an integer. |
92 | 92 | const emptyBinary = 0bn; // should error but infer 0n
|
93 | 93 |
|
94 | 94 | !!! error TS1177: Binary digit expected.
|
|
0 commit comments