swc/crates/swc_ecma_parser/tests/tsc/bigintMissingES2020.ts
2022-02-04 17:08:38 +09:00

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