mirror of
https://github.com/microsoft/TypeScript.git
synced 2025-11-18 17:21:48 +00:00
Update test text
This commit is contained in:
@@ -4,10 +4,10 @@ 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
|
||||
// no error when bigint is used even when ES2020 lib is not present
|
||||
|
||||
|
||||
//// [bigintMissingES2020.js]
|
||||
test();
|
||||
test();
|
||||
// should have global error when bigint is used but ES2020 lib is not present
|
||||
// no error when bigint is used even when ES2020 lib is not present
|
||||
|
||||
@@ -13,5 +13,5 @@ test<{t?: string}, bigint>();
|
||||
>test : Symbol(test, Decl(bigintMissingES2020.ts, 0, 0))
|
||||
>t : Symbol(t, Decl(bigintMissingES2020.ts, 3, 6))
|
||||
|
||||
// should have global error when bigint is used but ES2020 lib is not present
|
||||
// no error when bigint is used even when ES2020 lib is not present
|
||||
|
||||
|
||||
@@ -12,5 +12,5 @@ test<{t?: string}, bigint>();
|
||||
>test : <A, B extends A>() => void
|
||||
>t : string
|
||||
|
||||
// should have global error when bigint is used but ES2020 lib is not present
|
||||
// no error when bigint is used even when ES2020 lib is not present
|
||||
|
||||
|
||||
@@ -4,10 +4,10 @@ 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
|
||||
// no error when bigint is used even when ES2020 lib is not present
|
||||
|
||||
|
||||
//// [bigintMissingESNext.js]
|
||||
test();
|
||||
test();
|
||||
// should have global error when bigint is used but ES2020 lib is not present
|
||||
// no error when bigint is used even when ES2020 lib is not present
|
||||
|
||||
@@ -13,5 +13,5 @@ test<{t?: string}, bigint>();
|
||||
>test : Symbol(test, Decl(bigintMissingESNext.ts, 0, 0))
|
||||
>t : Symbol(t, Decl(bigintMissingESNext.ts, 3, 6))
|
||||
|
||||
// should have global error when bigint is used but ES2020 lib is not present
|
||||
// no error when bigint is used even when ES2020 lib is not present
|
||||
|
||||
|
||||
@@ -12,5 +12,5 @@ test<{t?: string}, bigint>();
|
||||
>test : <A, B extends A>() => void
|
||||
>t : string
|
||||
|
||||
// should have global error when bigint is used but ES2020 lib is not present
|
||||
// no error when bigint is used even when ES2020 lib is not present
|
||||
|
||||
|
||||
@@ -5,4 +5,4 @@ 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
|
||||
// no error when bigint is used even when ES2020 lib is not present
|
||||
|
||||
@@ -5,4 +5,4 @@ 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
|
||||
// no error when bigint is used even when ES2020 lib is not present
|
||||
|
||||
Reference in New Issue
Block a user