TypeScript/tests/baselines/reference/bigintMissingES2020.symbols
Nathan Shively-Sanders 5f46d42ad1
Error on missing BigInt in es2020 (#37899)
* Error on missing BigInt in ES2020 too.

Previously it was only on ESNext, but bigint ships in ES 2020.

There are no tests for this; passing `false` doesn't cause any tests to
fail at least.

* add tests
2020-04-13 08:30:59 -07:00

18 lines
697 B
Plaintext

=== tests/cases/conformance/es2020/bigintMissingES2020.ts ===
declare function test<A, B extends A>(): void;
>test : Symbol(test, Decl(bigintMissingES2020.ts, 0, 0))
>A : Symbol(A, Decl(bigintMissingES2020.ts, 0, 22))
>B : Symbol(B, Decl(bigintMissingES2020.ts, 0, 24))
>A : Symbol(A, Decl(bigintMissingES2020.ts, 0, 22))
test<{t?: string}, object>();
>test : Symbol(test, Decl(bigintMissingES2020.ts, 0, 0))
>t : Symbol(t, Decl(bigintMissingES2020.ts, 2, 6))
test<{t?: string}, bigint>();
>test : Symbol(test, Decl(bigintMissingES2020.ts, 0, 0))
>t : Symbol(t, Decl(bigintMissingES2020.ts, 3, 6))
// should have global error when bigint is used but ES2020 lib is not present