Accept new baselines

This commit is contained in:
Anders Hejlsberg 2018-06-12 12:39:56 -07:00
parent f93f6ec17b
commit 6bdedad22f
3 changed files with 10 additions and 10 deletions

View File

@ -3,7 +3,7 @@ const [, a = ''] = ''.match('') || [];
> : undefined
>a : string
>'' : ""
>''.match('') || [] : RegExpMatchArray | [undefined, ""]
>''.match('') || [] : RegExpMatchArray
>''.match('') : RegExpMatchArray
>''.match : (regexp: string | RegExp) => RegExpMatchArray
>'' : ""

View File

@ -50,11 +50,11 @@ declare function fo(x: Object): void;
declare function fs(x: string): void;
declare function fx(f: (x: "def") => void): void;
declare const x1: (x: string) => void;
declare const x2 = "abc";
declare const x3: string;
declare const x2: string;
declare const x3: Object;
declare const x4: Func<string>;
declare const never: never;
declare const x10: string;
declare const x11: "def";
declare const x11: Object;
declare function foo<T>(a: ReadonlyArray<T>): T;
declare let x: never;

View File

@ -78,16 +78,16 @@ const x1 = f1(fo, fs); // (x: string) => void
>fs : (x: string) => void
const x2 = f2("abc", fo, fs); // "abc"
>x2 : "abc"
>f2("abc", fo, fs) : "abc"
>x2 : string
>f2("abc", fo, fs) : string
>f2 : <T>(obj: T, f1: (x: T) => void, f2: (x: T) => void) => T
>"abc" : "abc"
>fo : (x: Object) => void
>fs : (x: string) => void
const x3 = f3("abc", fo, fx); // "abc" | "def"
>x3 : "def" | "abc"
>f3("abc", fo, fx) : "def" | "abc"
>x3 : Object
>f3("abc", fo, fx) : Object
>f3 : <T>(obj: T, f1: (x: T) => void, f2: (f: (x: T) => void) => void) => T
>"abc" : "abc"
>fo : (x: Object) => void
@ -112,8 +112,8 @@ const x10 = f2(never, fo, fs); // string
>fs : (x: string) => void
const x11 = f3(never, fo, fx); // "def"
>x11 : "def"
>f3(never, fo, fx) : "def"
>x11 : Object
>f3(never, fo, fx) : Object
>f3 : <T>(obj: T, f1: (x: T) => void, f2: (f: (x: T) => void) => void) => T
>never : never
>fo : (x: Object) => void