Skip to content

Commit e4f0a50

Browse files
committed
Update test name
1 parent 9ab55c1 commit e4f0a50

File tree

6 files changed

+40
-87
lines changed

6 files changed

+40
-87
lines changed
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,11 @@
1-
//// [restIntersectionOrIntersection.ts]
1+
//// [restIntersection.ts]
22
var intersection: { x: number, y: number } & { w: string, z: string };
3-
var union: { a: number, c: boolean } | { a: string, b: string };
4-
53

64
var rest1: { y: number, w: string, z: string };
75
var {x, ...rest1 } = intersection;
8-
9-
var rest2: { c: boolean } | { b: string };
10-
var {a, ...rest2 } = union;
11-
126

137

14-
//// [restIntersectionOrIntersection.js]
8+
//// [restIntersection.js]
159
var __rest = (this && this.__rest) || function (s, e) {
1610
var t = {};
1711
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
@@ -22,8 +16,5 @@ var __rest = (this && this.__rest) || function (s, e) {
2216
return t;
2317
};
2418
var intersection;
25-
var union;
2619
var rest1;
2720
var x = intersection.x, rest1 = __rest(intersection, ["x"]);
28-
var rest2;
29-
var a = union.a, rest2 = __rest(union, ["a"]);
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
=== tests/cases/compiler/restIntersection.ts ===
2+
var intersection: { x: number, y: number } & { w: string, z: string };
3+
>intersection : Symbol(intersection, Decl(restIntersection.ts, 0, 3))
4+
>x : Symbol(x, Decl(restIntersection.ts, 0, 19))
5+
>y : Symbol(y, Decl(restIntersection.ts, 0, 30))
6+
>w : Symbol(w, Decl(restIntersection.ts, 0, 46))
7+
>z : Symbol(z, Decl(restIntersection.ts, 0, 57))
8+
9+
var rest1: { y: number, w: string, z: string };
10+
>rest1 : Symbol(rest1, Decl(restIntersection.ts, 2, 3), Decl(restIntersection.ts, 3, 7))
11+
>y : Symbol(y, Decl(restIntersection.ts, 2, 12))
12+
>w : Symbol(w, Decl(restIntersection.ts, 2, 23))
13+
>z : Symbol(z, Decl(restIntersection.ts, 2, 34))
14+
15+
var {x, ...rest1 } = intersection;
16+
>x : Symbol(x, Decl(restIntersection.ts, 3, 5))
17+
>rest1 : Symbol(rest1, Decl(restIntersection.ts, 2, 3), Decl(restIntersection.ts, 3, 7))
18+
>intersection : Symbol(intersection, Decl(restIntersection.ts, 0, 3))
19+
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
=== tests/cases/compiler/restIntersection.ts ===
2+
var intersection: { x: number, y: number } & { w: string, z: string };
3+
>intersection : { x: number; y: number; } & { w: string; z: string; }
4+
>x : number
5+
>y : number
6+
>w : string
7+
>z : string
8+
9+
var rest1: { y: number, w: string, z: string };
10+
>rest1 : { y: number; w: string; z: string; }
11+
>y : number
12+
>w : string
13+
>z : string
14+
15+
var {x, ...rest1 } = intersection;
16+
>x : number
17+
>rest1 : { y: number; w: string; z: string; }
18+
>intersection : { x: number; y: number; } & { w: string; z: string; }
19+

tests/baselines/reference/restIntersectionOrIntersection.symbols

Lines changed: 0 additions & 38 deletions
This file was deleted.

tests/baselines/reference/restIntersectionOrIntersection.types

Lines changed: 0 additions & 38 deletions
This file was deleted.

0 commit comments

Comments
 (0)