Accept new baselines

This commit is contained in:
Jack Williams
2018-07-11 17:45:22 +01:00
parent 3911b5cca6
commit 5aaf1e6b7a
2 changed files with 9 additions and 9 deletions

View File

@@ -42,7 +42,7 @@ function assertSymbol(x: symbol) {
function assertFunction(x: Function) {
>assertFunction : Symbol(assertFunction, Decl(narrowingByTypeofInSwitch.ts, 18, 1))
>x : Symbol(x, Decl(narrowingByTypeofInSwitch.ts, 20, 24))
>Function : Symbol(Function, Decl(lib.d.ts, --, --), Decl(lib.d.ts, --, --))
>Function : Symbol(Function, Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --))
return x;
>x : Symbol(x, Decl(narrowingByTypeofInSwitch.ts, 20, 24))
@@ -91,7 +91,7 @@ function assertBooleanOrObject(x: boolean | object) {
type Basic = number | boolean | string | symbol | object | Function | undefined;
>Basic : Symbol(Basic, Decl(narrowingByTypeofInSwitch.ts, 42, 1))
>Function : Symbol(Function, Decl(lib.d.ts, --, --), Decl(lib.d.ts, --, --))
>Function : Symbol(Function, Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --))
function testUnion(x: Basic) {
>testUnion : Symbol(testUnion, Decl(narrowingByTypeofInSwitch.ts, 44, 80))
@@ -367,9 +367,9 @@ function exhaustiveChecks(x: number | string | L | R): string {
>x : Symbol(x, Decl(narrowingByTypeofInSwitch.ts, 133, 26))
case 'number': return x.toString(2);
>x.toString : Symbol(Number.toString, Decl(lib.d.ts, --, --))
>x.toString : Symbol(Number.toString, Decl(lib.es5.d.ts, --, --))
>x : Symbol(x, Decl(narrowingByTypeofInSwitch.ts, 133, 26))
>toString : Symbol(Number.toString, Decl(lib.d.ts, --, --))
>toString : Symbol(Number.toString, Decl(lib.es5.d.ts, --, --))
case 'string': return x;
>x : Symbol(x, Decl(narrowingByTypeofInSwitch.ts, 133, 26))
@@ -396,9 +396,9 @@ function exhaustiveChecksGenerics<T extends L | R | number | string>(x: T): stri
>x : Symbol(x, Decl(narrowingByTypeofInSwitch.ts, 142, 69))
case 'number': return x.toString(2);
>x.toString : Symbol(toString, Decl(lib.d.ts, --, --), Decl(lib.d.ts, --, --), Decl(lib.d.ts, --, --), Decl(lib.d.ts, --, --), Decl(lib.d.ts, --, --) ... and 2 more)
>x.toString : Symbol(toString, Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --) ... and 2 more)
>x : Symbol(x, Decl(narrowingByTypeofInSwitch.ts, 142, 69))
>toString : Symbol(toString, Decl(lib.d.ts, --, --), Decl(lib.d.ts, --, --), Decl(lib.d.ts, --, --), Decl(lib.d.ts, --, --), Decl(lib.d.ts, --, --) ... and 2 more)
>toString : Symbol(toString, Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --) ... and 2 more)
case 'string': return x;
>x : Symbol(x, Decl(narrowingByTypeofInSwitch.ts, 142, 69))

View File

@@ -171,7 +171,7 @@ function testExtendsUnion<T extends Basic>(x: T) {
>'boolean' : "boolean"
>assertBoolean(x) : boolean
>assertBoolean : (x: boolean) => boolean
>x : (T & true) | (T & false)
>x : (T & false) | (T & true)
case 'function': assertAll(x); return;
>'function' : "function"
@@ -373,7 +373,7 @@ function testExtendsExplicitDefault<T extends Basic>(x: T) {
>'boolean' : "boolean"
>assertBoolean(x) : boolean
>assertBoolean : (x: boolean) => boolean
>x : (T & true) | (T & false)
>x : (T & false) | (T & true)
case 'function': assertAll(x); return;
>'function' : "function"
@@ -416,7 +416,7 @@ function testExtendsImplicitDefault<T extends Basic>(x: T) {
>'boolean' : "boolean"
>assertBoolean(x) : boolean
>assertBoolean : (x: boolean) => boolean
>x : (T & true) | (T & false)
>x : (T & false) | (T & true)
case 'function': assertAll(x); return;
>'function' : "function"