mirror of
https://github.com/swc-project/swc.git
synced 2024-12-19 03:31:45 +03:00
9 lines
226 B
TypeScript
9 lines
226 B
TypeScript
// @target: esnext
|
|
// @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
|