mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-02-09 02:30:15 -06:00
Accept new baselines
This commit is contained in:
parent
ad823daabb
commit
cde94441d3
@ -309,7 +309,7 @@ declare function f16<A, B>(a: A, b: B): A | B;
|
||||
declare let x20: number;
|
||||
declare let x21: string;
|
||||
declare let x22: string | number;
|
||||
declare let x23: unknown;
|
||||
declare let x23: string | number;
|
||||
declare let x24: string | number;
|
||||
declare let x30: string;
|
||||
declare let x31: string | number;
|
||||
|
||||
@ -462,8 +462,8 @@ let x22 = call(f15, "hello", 42); // string | number
|
||||
>42 : 42
|
||||
|
||||
let x23 = call(f16, "hello", 42); // unknown
|
||||
>x23 : unknown
|
||||
>call(f16, "hello", 42) : unknown
|
||||
>x23 : string | number
|
||||
>call(f16, "hello", 42) : string | number
|
||||
>call : <T extends unknown[], U>(f: (...args: T) => U, ...args: T) => U
|
||||
>f16 : <A, B>(a: A, b: B) => A | B
|
||||
>"hello" : "hello"
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user