TypeScript/tests/baselines/reference/bigIntWithTargetLessThanES2016.symbols
2020-05-04 13:14:48 -04:00

14 lines
711 B
Plaintext

=== tests/cases/compiler/bigIntWithTargetLessThanES2016.ts ===
BigInt(1) ** BigInt(1); // should error
>BigInt : Symbol(BigInt, Decl(lib.es2020.bigint.d.ts, --, --), Decl(lib.es2020.bigint.d.ts, --, --))
>BigInt : Symbol(BigInt, Decl(lib.es2020.bigint.d.ts, --, --), Decl(lib.es2020.bigint.d.ts, --, --))
let foo = BigInt(2);
>foo : Symbol(foo, Decl(bigIntWithTargetLessThanES2016.ts, 2, 3))
>BigInt : Symbol(BigInt, Decl(lib.es2020.bigint.d.ts, --, --), Decl(lib.es2020.bigint.d.ts, --, --))
foo **= BigInt(2); // should error
>foo : Symbol(foo, Decl(bigIntWithTargetLessThanES2016.ts, 2, 3))
>BigInt : Symbol(BigInt, Decl(lib.es2020.bigint.d.ts, --, --), Decl(lib.es2020.bigint.d.ts, --, --))