1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23
|
=== tests/cases/compiler/bigIntWithTargetES2016.ts ===
BigInt(1) ** BigInt(1); // should not error
>BigInt(1) ** BigInt(1) : bigint
>BigInt(1) : bigint
>BigInt : BigIntConstructor
>1 : 1
>BigInt(1) : bigint
>BigInt : BigIntConstructor
>1 : 1
let num = BigInt(2);
>num : bigint
>BigInt(2) : bigint
>BigInt : BigIntConstructor
>2 : 2
num **= BigInt(2); // should not error
>num **= BigInt(2) : bigint
>num : bigint
>BigInt(2) : bigint
>BigInt : BigIntConstructor
>2 : 2
|