TypeScript/tests/cases/compiler/bigIntWithTargetES3.ts

8 lines
333 B
TypeScript
Raw Normal View History

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
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