swc/crates/swc_ecma_parser/tests/tsc/bigintMissingESNext.ts

9 lines
216 B
TypeScript

// @target: esnext
// @lib: dom,es2017
declare function test<A, B extends A>(): void;
test<{t?: string}, object>();
test<{t?: string}, bigint>();
// no error when bigint is used even when ES2020 lib is not present