From 6bdedad22feb32305ea1bc756a0f1ec62d9475ef Mon Sep 17 00:00:00 2001 From: Anders Hejlsberg Date: Tue, 12 Jun 2018 12:39:56 -0700 Subject: [PATCH] Accept new baselines --- .../initializedDestructuringAssignmentTypes.types | 2 +- tests/baselines/reference/strictFunctionTypes1.js | 6 +++--- tests/baselines/reference/strictFunctionTypes1.types | 12 ++++++------ 3 files changed, 10 insertions(+), 10 deletions(-) diff --git a/tests/baselines/reference/initializedDestructuringAssignmentTypes.types b/tests/baselines/reference/initializedDestructuringAssignmentTypes.types index 55ddfa4f56b..542c693c525 100644 --- a/tests/baselines/reference/initializedDestructuringAssignmentTypes.types +++ b/tests/baselines/reference/initializedDestructuringAssignmentTypes.types @@ -3,7 +3,7 @@ const [, a = ''] = ''.match('') || []; > : undefined >a : string >'' : "" ->''.match('') || [] : RegExpMatchArray | [undefined, ""] +>''.match('') || [] : RegExpMatchArray >''.match('') : RegExpMatchArray >''.match : (regexp: string | RegExp) => RegExpMatchArray >'' : "" diff --git a/tests/baselines/reference/strictFunctionTypes1.js b/tests/baselines/reference/strictFunctionTypes1.js index 94ee06f88f8..45d28f72501 100644 --- a/tests/baselines/reference/strictFunctionTypes1.js +++ b/tests/baselines/reference/strictFunctionTypes1.js @@ -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; declare const never: never; declare const x10: string; -declare const x11: "def"; +declare const x11: Object; declare function foo(a: ReadonlyArray): T; declare let x: never; diff --git a/tests/baselines/reference/strictFunctionTypes1.types b/tests/baselines/reference/strictFunctionTypes1.types index b915e0b5f6b..50b37f3e63b 100644 --- a/tests/baselines/reference/strictFunctionTypes1.types +++ b/tests/baselines/reference/strictFunctionTypes1.types @@ -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 : (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 : (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 : (obj: T, f1: (x: T) => void, f2: (f: (x: T) => void) => void) => T >never : never >fo : (x: Object) => void