mirror of
https://github.com/swc-project/swc.git
synced 2024-12-20 12:12:16 +03:00
9 lines
216 B
TypeScript
9 lines
216 B
TypeScript
|
// @target: es2019
|
||
|
// @lib: dom,es2019
|
||
|
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
|