@@ -42,7 +42,7 @@ function assertSymbol(x: symbol) {
42
42
function assertFunction(x: Function) {
43
43
>assertFunction : Symbol(assertFunction, Decl(narrowingByTypeofInSwitch.ts, 18, 1))
44
44
>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, --, --))
46
46
47
47
return x;
48
48
>x : Symbol(x, Decl(narrowingByTypeofInSwitch.ts, 20, 24))
@@ -91,7 +91,7 @@ function assertBooleanOrObject(x: boolean | object) {
91
91
92
92
type Basic = number | boolean | string | symbol | object | Function | undefined;
93
93
>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, --, --))
95
95
96
96
function testUnion(x: Basic) {
97
97
>testUnion : Symbol(testUnion, Decl(narrowingByTypeofInSwitch.ts, 44, 80))
@@ -367,9 +367,9 @@ function exhaustiveChecks(x: number | string | L | R): string {
367
367
>x : Symbol(x, Decl(narrowingByTypeofInSwitch.ts, 133, 26))
368
368
369
369
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, --, --))
371
371
>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, --, --))
373
373
374
374
case 'string': return x;
375
375
>x : Symbol(x, Decl(narrowingByTypeofInSwitch.ts, 133, 26))
@@ -396,9 +396,9 @@ function exhaustiveChecksGenerics<T extends L | R | number | string>(x: T): stri
396
396
>x : Symbol(x, Decl(narrowingByTypeofInSwitch.ts, 142, 69))
397
397
398
398
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)
400
400
>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)
402
402
403
403
case 'string': return x;
404
404
>x : Symbol(x, Decl(narrowingByTypeofInSwitch.ts, 142, 69))
0 commit comments