Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Accept new baselines
  • Loading branch information
ahejlsberg committed Sep 13, 2017
commit b20d631ba235ae176d12fe95006535b637357e01
2 changes: 1 addition & 1 deletion tests/baselines/reference/restUnion2.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ declare const nullAndUndefinedUnion: null | undefined;
var rest4: { };
var {...rest4 } = nullAndUndefinedUnion;

declare const unionWithIntersection: ({ n: number } & { s: string }) & undefined | null;
declare const unionWithIntersection: ({ n: number } & { s: string }) & undefined;
var rest5: { n: number, s: string };
var {...rest5 } = unionWithIntersection;

Expand Down
2 changes: 1 addition & 1 deletion tests/baselines/reference/restUnion2.symbols
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ var {...rest4 } = nullAndUndefinedUnion;
>rest4 : Symbol(rest4, Decl(restUnion2.ts, 11, 3), Decl(restUnion2.ts, 12, 5))
>nullAndUndefinedUnion : Symbol(nullAndUndefinedUnion, Decl(restUnion2.ts, 10, 13))

declare const unionWithIntersection: ({ n: number } & { s: string }) & undefined | null;
declare const unionWithIntersection: ({ n: number } & { s: string }) & undefined;
>unionWithIntersection : Symbol(unionWithIntersection, Decl(restUnion2.ts, 14, 13))
>n : Symbol(n, Decl(restUnion2.ts, 14, 39))
>s : Symbol(s, Decl(restUnion2.ts, 14, 55))
Expand Down
7 changes: 3 additions & 4 deletions tests/baselines/reference/restUnion2.types
Original file line number Diff line number Diff line change
Expand Up @@ -37,11 +37,10 @@ var {...rest4 } = nullAndUndefinedUnion;
>rest4 : {}
>nullAndUndefinedUnion : null | undefined

declare const unionWithIntersection: ({ n: number } & { s: string }) & undefined | null;
>unionWithIntersection : ({ n: number; } & { s: string; } & undefined) | null
declare const unionWithIntersection: ({ n: number } & { s: string }) & undefined;
>unionWithIntersection : { n: number; } & { s: string; } & undefined
>n : number
>s : string
>null : null

var rest5: { n: number, s: string };
>rest5 : { n: number; s: string; }
Expand All @@ -50,5 +49,5 @@ var rest5: { n: number, s: string };

var {...rest5 } = unionWithIntersection;
>rest5 : { n: number; s: string; }
>unionWithIntersection : ({ n: number; } & { s: string; } & undefined) | null
>unionWithIntersection : { n: number; } & { s: string; } & undefined