|
1 |
| -tests/cases/compiler/warnExperimentalBigIntLiteral.ts(3,24): error TS1351: Experimental support for BigInt is a feature that is subject to change in a future release. Set the 'experimentalBigInt' option to remove this warning. |
2 |
| -tests/cases/compiler/warnExperimentalBigIntLiteral.ts(4,22): error TS1351: Experimental support for BigInt is a feature that is subject to change in a future release. Set the 'experimentalBigInt' option to remove this warning. |
3 |
| -tests/cases/compiler/warnExperimentalBigIntLiteral.ts(4,29): error TS1351: Experimental support for BigInt is a feature that is subject to change in a future release. Set the 'experimentalBigInt' option to remove this warning. |
4 |
| -tests/cases/compiler/warnExperimentalBigIntLiteral.ts(4,39): error TS1351: Experimental support for BigInt is a feature that is subject to change in a future release. Set the 'experimentalBigInt' option to remove this warning. |
5 |
| -tests/cases/compiler/warnExperimentalBigIntLiteral.ts(4,48): error TS1351: Experimental support for BigInt is a feature that is subject to change in a future release. Set the 'experimentalBigInt' option to remove this warning. |
| 1 | +tests/cases/compiler/warnExperimentalBigIntLiteral.ts(5,22): error TS1351: Experimental support for BigInt is a feature that is subject to change in a future release. Set the 'experimentalBigInt' option to remove this warning. |
| 2 | +tests/cases/compiler/warnExperimentalBigIntLiteral.ts(5,29): error TS1351: Experimental support for BigInt is a feature that is subject to change in a future release. Set the 'experimentalBigInt' option to remove this warning. |
| 3 | +tests/cases/compiler/warnExperimentalBigIntLiteral.ts(5,39): error TS1351: Experimental support for BigInt is a feature that is subject to change in a future release. Set the 'experimentalBigInt' option to remove this warning. |
| 4 | +tests/cases/compiler/warnExperimentalBigIntLiteral.ts(5,48): error TS1351: Experimental support for BigInt is a feature that is subject to change in a future release. Set the 'experimentalBigInt' option to remove this warning. |
6 | 5 |
|
7 | 6 |
|
8 |
| -==== tests/cases/compiler/warnExperimentalBigIntLiteral.ts (5 errors) ==== |
| 7 | +==== tests/cases/compiler/warnExperimentalBigIntLiteral.ts (4 errors) ==== |
9 | 8 | const normalNumber = 123; // should not error
|
10 | 9 | let bigintType: bigint; // should not error
|
11 |
| - let bigintLiteralType: 123n; // should error when used as type |
12 |
| - ~~~~ |
13 |
| -!!! error TS1351: Experimental support for BigInt is a feature that is subject to change in a future release. Set the 'experimentalBigInt' option to remove this warning. |
| 10 | + let bigintLiteralType: 123n; // should not error when used as type |
| 11 | + let bigintNegativeLiteralType: -123n; // should not error when used as type |
14 | 12 | const bigintNumber = 123n * 0b1111n + 0o444n * 0x7fn; // each literal should error
|
15 | 13 | ~~~~
|
16 | 14 | !!! error TS1351: Experimental support for BigInt is a feature that is subject to change in a future release. Set the 'experimentalBigInt' option to remove this warning.
|
|
0 commit comments