* 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
9 lines
226 B
TypeScript
9 lines
226 B
TypeScript
// @target: es2020
|
|
// @lib: dom,es2017
|
|
declare function test<A, B extends A>(): void;
|
|
|
|
test<{t?: string}, object>();
|
|
test<{t?: string}, bigint>();
|
|
|
|
// should have global error when bigint is used but ES2020 lib is not present
|