mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-06-15 22:15:05 -05:00
Accept new baselines
This commit is contained in:
@@ -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))
|
||||
|
||||
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user