2022-02-04 11:08:38 +03:00
|
|
|
// @target: es2020
|
|
|
|
// @lib: dom,es2017
|
|
|
|
declare function test<A, B extends A>(): void;
|
|
|
|
|
|
|
|
test<{t?: string}, object>();
|
|
|
|
test<{t?: string}, bigint>();
|
|
|
|
|
2022-08-29 13:49:01 +03:00
|
|
|
// no error when bigint is used even when ES2020 lib is not present
|