mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-02-12 12:57:11 -06:00
Updated test case.
This commit is contained in:
parent
f7ad54b432
commit
15f2f047f8
@ -1,7 +1,8 @@
|
||||
// @target: esnext
|
||||
// @target: es3
|
||||
|
||||
const normalNumber = 123; // should not error
|
||||
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
|
||||
const bigintNumber = 123n * 0b1111n + 0o444n * 0x7fn; // each literal should error
|
||||
const bigintNumber = 123n * 0b1111n + 0o444n * 0x7fn; // each literal should error
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user