mirror of
https://github.com/hanzoai/tsgo.git
synced 2026-10-30 19:37:15 +00:00
17 lines
414 B
TypeScript
17 lines
414 B
TypeScript
//// [tests/cases/conformance/es2020/bigintMissingES2019.ts] ////
|
|
|
|
//// [bigintMissingES2019.ts]
|
|
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
|
|
|
|
|
|
//// [bigintMissingES2019.js]
|
|
"use strict";
|
|
test();
|
|
test();
|
|
// no error when bigint is used even when ES2020 lib is not present
|