mirror of
https://github.com/hanzoai/tsgo.git
synced 2026-10-30 19:37:15 +00:00
20 lines
725 B
Plaintext
20 lines
725 B
Plaintext
//// [tests/cases/conformance/es2020/bigintMissingESNext.ts] ////
|
|
|
|
=== bigintMissingESNext.ts ===
|
|
declare function test<A, B extends A>(): void;
|
|
>test : Symbol(test, Decl(bigintMissingESNext.ts, 0, 0))
|
|
>A : Symbol(A, Decl(bigintMissingESNext.ts, 0, 22))
|
|
>B : Symbol(B, Decl(bigintMissingESNext.ts, 0, 24))
|
|
>A : Symbol(A, Decl(bigintMissingESNext.ts, 0, 22))
|
|
|
|
test<{t?: string}, object>();
|
|
>test : Symbol(test, Decl(bigintMissingESNext.ts, 0, 0))
|
|
>t : Symbol(t, Decl(bigintMissingESNext.ts, 2, 6))
|
|
|
|
test<{t?: string}, bigint>();
|
|
>test : Symbol(test, Decl(bigintMissingESNext.ts, 0, 0))
|
|
>t : Symbol(t, Decl(bigintMissingESNext.ts, 3, 6))
|
|
|
|
// no error when bigint is used even when ES2020 lib is not present
|
|
|