Don't error on bigint literal used in type

This commit is contained in:
Caleb Sander
2018-11-05 12:23:02 -08:00
parent 6c59a3b890
commit bb99c41230
6 changed files with 35 additions and 22 deletions

View File

@@ -2,5 +2,6 @@
const normalNumber = 123; // should not error
let bigintType: bigint; // should not error
let bigintLiteralType: 123n; // should error when used as type
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