Skip to content

Commit 5aaf1e6

Browse files
committed
Accept new baselines
1 parent 3911b5c commit 5aaf1e6

File tree

2 files changed

+9
-9
lines changed

2 files changed

+9
-9
lines changed

tests/baselines/reference/narrowingByTypeofInSwitch.symbols

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ function assertSymbol(x: symbol) {
4242
function assertFunction(x: Function) {
4343
>assertFunction : Symbol(assertFunction, Decl(narrowingByTypeofInSwitch.ts, 18, 1))
4444
>x : Symbol(x, Decl(narrowingByTypeofInSwitch.ts, 20, 24))
45-
>Function : Symbol(Function, Decl(lib.d.ts, --, --), Decl(lib.d.ts, --, --))
45+
>Function : Symbol(Function, Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --))
4646

4747
return x;
4848
>x : Symbol(x, Decl(narrowingByTypeofInSwitch.ts, 20, 24))
@@ -91,7 +91,7 @@ function assertBooleanOrObject(x: boolean | object) {
9191

9292
type Basic = number | boolean | string | symbol | object | Function | undefined;
9393
>Basic : Symbol(Basic, Decl(narrowingByTypeofInSwitch.ts, 42, 1))
94-
>Function : Symbol(Function, Decl(lib.d.ts, --, --), Decl(lib.d.ts, --, --))
94+
>Function : Symbol(Function, Decl(lib.es5.d.ts, --, --), Decl(lib.es5.d.ts, --, --))
9595

9696
function testUnion(x: Basic) {
9797
>testUnion : Symbol(testUnion, Decl(narrowingByTypeofInSwitch.ts, 44, 80))
@@ -367,9 +367,9 @@ function exhaustiveChecks(x: number | string | L | R): string {
367367
>x : Symbol(x, Decl(narrowingByTypeofInSwitch.ts, 133, 26))
368368

369369
case 'number': return x.toString(2);
370-
>x.toString : Symbol(Number.toString, Decl(lib.d.ts, --, --))
370+
>x.toString : Symbol(Number.toString, Decl(lib.es5.d.ts, --, --))
371371
>x : Symbol(x, Decl(narrowingByTypeofInSwitch.ts, 133, 26))
372-
>toString : Symbol(Number.toString, Decl(lib.d.ts, --, --))
372+
>toString : Symbol(Number.toString, Decl(lib.es5.d.ts, --, --))
373373

374374
case 'string': return x;
375375
>x : Symbol(x, Decl(narrowingByTypeofInSwitch.ts, 133, 26))
@@ -396,9 +396,9 @@ function exhaustiveChecksGenerics<T extends L | R | number | string>(x: T): stri
396396
>x : Symbol(x, Decl(narrowingByTypeofInSwitch.ts, 142, 69))
397397

398398
case 'number': return x.toString(2);
399-
>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)
399+
>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)
400400
>x : Symbol(x, Decl(narrowingByTypeofInSwitch.ts, 142, 69))
401-
>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)
401+
>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)
402402

403403
case 'string': return x;
404404
>x : Symbol(x, Decl(narrowingByTypeofInSwitch.ts, 142, 69))

tests/baselines/reference/narrowingByTypeofInSwitch.types

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -171,7 +171,7 @@ function testExtendsUnion<T extends Basic>(x: T) {
171171
>'boolean' : "boolean"
172172
>assertBoolean(x) : boolean
173173
>assertBoolean : (x: boolean) => boolean
174-
>x : (T & true) | (T & false)
174+
>x : (T & false) | (T & true)
175175

176176
case 'function': assertAll(x); return;
177177
>'function' : "function"
@@ -373,7 +373,7 @@ function testExtendsExplicitDefault<T extends Basic>(x: T) {
373373
>'boolean' : "boolean"
374374
>assertBoolean(x) : boolean
375375
>assertBoolean : (x: boolean) => boolean
376-
>x : (T & true) | (T & false)
376+
>x : (T & false) | (T & true)
377377

378378
case 'function': assertAll(x); return;
379379
>'function' : "function"
@@ -416,7 +416,7 @@ function testExtendsImplicitDefault<T extends Basic>(x: T) {
416416
>'boolean' : "boolean"
417417
>assertBoolean(x) : boolean
418418
>assertBoolean : (x: boolean) => boolean
419-
>x : (T & true) | (T & false)
419+
>x : (T & false) | (T & true)
420420

421421
case 'function': assertAll(x); return;
422422
>'function' : "function"

0 commit comments

Comments
 (0)