2018-11-10 01:21:06 +01:00
|
|
|
// @target: es3
|
2018-10-31 00:56:05 +01:00
|
|
|
|
2018-09-30 00:12:17 +02:00
|
|
|
const normalNumber = 123; // should not error
|
2018-09-30 00:19:52 +02:00
|
|
|
let bigintType: bigint; // should not error
|
2018-11-05 21:23:02 +01:00
|
|
|
let bigintLiteralType: 123n; // should not error when used as type
|
|
|
|
let bigintNegativeLiteralType: -123n; // should not error when used as type
|
2018-11-10 01:21:06 +01:00
|
|
|
const bigintNumber = 123n * 0b1111n + 0o444n * 0x7fn; // each literal should error
|