Skip to content

Commit 17b77df

Browse files
Accepted baselines.
1 parent 15f2f04 commit 17b77df

File tree

4 files changed

+20
-14
lines changed

4 files changed

+20
-14
lines changed
Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
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.
1+
tests/cases/compiler/warnExperimentalBigIntLiteral.ts(5,22): error TS2737: BigInt literals are not available when targeting lower than ESNext.
2+
tests/cases/compiler/warnExperimentalBigIntLiteral.ts(5,29): error TS2737: BigInt literals are not available when targeting lower than ESNext.
3+
tests/cases/compiler/warnExperimentalBigIntLiteral.ts(5,39): error TS2737: BigInt literals are not available when targeting lower than ESNext.
4+
tests/cases/compiler/warnExperimentalBigIntLiteral.ts(5,48): error TS2737: BigInt literals are not available when targeting lower than ESNext.
55

66

77
==== tests/cases/compiler/warnExperimentalBigIntLiteral.ts (4 errors) ====
@@ -11,10 +11,12 @@ tests/cases/compiler/warnExperimentalBigIntLiteral.ts(5,48): error TS1351: Exper
1111
let bigintNegativeLiteralType: -123n; // should not error when used as type
1212
const bigintNumber = 123n * 0b1111n + 0o444n * 0x7fn; // each literal should error
1313
~~~~
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.
14+
!!! error TS2737: BigInt literals are not available when targeting lower than ESNext.
1515
~~~~~~~
16-
!!! 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.
16+
!!! error TS2737: BigInt literals are not available when targeting lower than ESNext.
1717
~~~~~~
18-
!!! 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.
18+
!!! error TS2737: BigInt literals are not available when targeting lower than ESNext.
1919
~~~~~
20-
!!! 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.
20+
!!! error TS2737: BigInt literals are not available when targeting lower than ESNext.
21+
22+

tests/baselines/reference/warnExperimentalBigIntLiteral.js

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,13 @@ const normalNumber = 123; // should not error
33
let bigintType: bigint; // should not error
44
let bigintLiteralType: 123n; // should not error when used as type
55
let bigintNegativeLiteralType: -123n; // should not error when used as type
6-
const bigintNumber = 123n * 0b1111n + 0o444n * 0x7fn; // each literal should error
6+
const bigintNumber = 123n * 0b1111n + 0o444n * 0x7fn; // each literal should error
7+
8+
79

810
//// [warnExperimentalBigIntLiteral.js]
9-
const normalNumber = 123; // should not error
10-
let bigintType; // should not error
11-
let bigintLiteralType; // should not error when used as type
12-
let bigintNegativeLiteralType; // should not error when used as type
13-
const bigintNumber = 123n * 15n + 292n * 0x7fn; // each literal should error
11+
var normalNumber = 123; // should not error
12+
var bigintType; // should not error
13+
var bigintLiteralType; // should not error when used as type
14+
var bigintNegativeLiteralType; // should not error when used as type
15+
var bigintNumber = 123n * 15n + 292n * 0x7fn; // each literal should error

tests/baselines/reference/warnExperimentalBigIntLiteral.symbols

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,3 +14,4 @@ let bigintNegativeLiteralType: -123n; // should not error when used as type
1414
const bigintNumber = 123n * 0b1111n + 0o444n * 0x7fn; // each literal should error
1515
>bigintNumber : Symbol(bigintNumber, Decl(warnExperimentalBigIntLiteral.ts, 4, 5))
1616

17+

tests/baselines/reference/warnExperimentalBigIntLiteral.types

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,3 +24,4 @@ const bigintNumber = 123n * 0b1111n + 0o444n * 0x7fn; // each literal should err
2424
>0o444n : 292n
2525
>0x7fn : 127n
2626

27+

0 commit comments

Comments
 (0)