TypeScript/tests/baselines/reference/bigIntWithTargetES2016.types

24 lines
494 B
Plaintext

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