@@ -107,45 +107,76 @@ f6({ x: 1, y: 1 });
107
107
>x : Symbol(x, Decl(destructuringWithLiteralInitializers.ts, 33, 4))
108
108
>y : Symbol(y, Decl(destructuringWithLiteralInitializers.ts, 33, 10))
109
109
110
+ // (arg?: { a: { x?: number, y?: number } }) => void
111
+ function f7({ a: { x = 0, y = 0 } } = { a: {} }) { }
112
+ >f7 : Symbol(f7, Decl(destructuringWithLiteralInitializers.ts, 33, 19))
113
+ >a : Symbol(a, Decl(destructuringWithLiteralInitializers.ts, 36, 39))
114
+ >x : Symbol(x, Decl(destructuringWithLiteralInitializers.ts, 36, 18))
115
+ >y : Symbol(y, Decl(destructuringWithLiteralInitializers.ts, 36, 25))
116
+ >a : Symbol(a, Decl(destructuringWithLiteralInitializers.ts, 36, 39))
117
+
118
+ f7();
119
+ >f7 : Symbol(f7, Decl(destructuringWithLiteralInitializers.ts, 33, 19))
120
+
121
+ f7({ a: {} });
122
+ >f7 : Symbol(f7, Decl(destructuringWithLiteralInitializers.ts, 33, 19))
123
+ >a : Symbol(a, Decl(destructuringWithLiteralInitializers.ts, 38, 4))
124
+
125
+ f7({ a: { x: 1 } });
126
+ >f7 : Symbol(f7, Decl(destructuringWithLiteralInitializers.ts, 33, 19))
127
+ >a : Symbol(a, Decl(destructuringWithLiteralInitializers.ts, 39, 4))
128
+ >x : Symbol(x, Decl(destructuringWithLiteralInitializers.ts, 39, 9))
129
+
130
+ f7({ a: { y: 1 } });
131
+ >f7 : Symbol(f7, Decl(destructuringWithLiteralInitializers.ts, 33, 19))
132
+ >a : Symbol(a, Decl(destructuringWithLiteralInitializers.ts, 40, 4))
133
+ >y : Symbol(y, Decl(destructuringWithLiteralInitializers.ts, 40, 9))
134
+
135
+ f7({ a: { x: 1, y: 1 } });
136
+ >f7 : Symbol(f7, Decl(destructuringWithLiteralInitializers.ts, 33, 19))
137
+ >a : Symbol(a, Decl(destructuringWithLiteralInitializers.ts, 41, 4))
138
+ >x : Symbol(x, Decl(destructuringWithLiteralInitializers.ts, 41, 9))
139
+ >y : Symbol(y, Decl(destructuringWithLiteralInitializers.ts, 41, 15))
140
+
110
141
// (arg: [any, any]) => void
111
142
function g1([x, y]) { }
112
- >g1 : Symbol(g1, Decl(destructuringWithLiteralInitializers.ts, 33, 19 ))
113
- >x : Symbol(x, Decl(destructuringWithLiteralInitializers.ts, 36 , 13))
114
- >y : Symbol(y, Decl(destructuringWithLiteralInitializers.ts, 36 , 15))
143
+ >g1 : Symbol(g1, Decl(destructuringWithLiteralInitializers.ts, 41, 26 ))
144
+ >x : Symbol(x, Decl(destructuringWithLiteralInitializers.ts, 44 , 13))
145
+ >y : Symbol(y, Decl(destructuringWithLiteralInitializers.ts, 44 , 15))
115
146
116
147
g1([1, 1]);
117
- >g1 : Symbol(g1, Decl(destructuringWithLiteralInitializers.ts, 33, 19 ))
148
+ >g1 : Symbol(g1, Decl(destructuringWithLiteralInitializers.ts, 41, 26 ))
118
149
119
150
// (arg: [number, number]) => void
120
151
function g2([x = 0, y = 0]) { }
121
- >g2 : Symbol(g2, Decl(destructuringWithLiteralInitializers.ts, 37 , 11))
122
- >x : Symbol(x, Decl(destructuringWithLiteralInitializers.ts, 40 , 13))
123
- >y : Symbol(y, Decl(destructuringWithLiteralInitializers.ts, 40 , 19))
152
+ >g2 : Symbol(g2, Decl(destructuringWithLiteralInitializers.ts, 45 , 11))
153
+ >x : Symbol(x, Decl(destructuringWithLiteralInitializers.ts, 48 , 13))
154
+ >y : Symbol(y, Decl(destructuringWithLiteralInitializers.ts, 48 , 19))
124
155
125
156
g2([1, 1]);
126
- >g2 : Symbol(g2, Decl(destructuringWithLiteralInitializers.ts, 37 , 11))
157
+ >g2 : Symbol(g2, Decl(destructuringWithLiteralInitializers.ts, 45 , 11))
127
158
128
159
// (arg?: [any, any]) => void
129
160
function g3([x, y] = []) { }
130
- >g3 : Symbol(g3, Decl(destructuringWithLiteralInitializers.ts, 41 , 11))
131
- >x : Symbol(x, Decl(destructuringWithLiteralInitializers.ts, 44 , 13))
132
- >y : Symbol(y, Decl(destructuringWithLiteralInitializers.ts, 44 , 15))
161
+ >g3 : Symbol(g3, Decl(destructuringWithLiteralInitializers.ts, 49 , 11))
162
+ >x : Symbol(x, Decl(destructuringWithLiteralInitializers.ts, 52 , 13))
163
+ >y : Symbol(y, Decl(destructuringWithLiteralInitializers.ts, 52 , 15))
133
164
134
165
g3();
135
- >g3 : Symbol(g3, Decl(destructuringWithLiteralInitializers.ts, 41 , 11))
166
+ >g3 : Symbol(g3, Decl(destructuringWithLiteralInitializers.ts, 49 , 11))
136
167
137
168
g3([1, 1]);
138
- >g3 : Symbol(g3, Decl(destructuringWithLiteralInitializers.ts, 41 , 11))
169
+ >g3 : Symbol(g3, Decl(destructuringWithLiteralInitializers.ts, 49 , 11))
139
170
140
171
// (arg?: [number, number]) => void
141
172
function g4([x, y] = [0, 0]) { }
142
- >g4 : Symbol(g4, Decl(destructuringWithLiteralInitializers.ts, 46 , 11))
143
- >x : Symbol(x, Decl(destructuringWithLiteralInitializers.ts, 49 , 13))
144
- >y : Symbol(y, Decl(destructuringWithLiteralInitializers.ts, 49 , 15))
173
+ >g4 : Symbol(g4, Decl(destructuringWithLiteralInitializers.ts, 54 , 11))
174
+ >x : Symbol(x, Decl(destructuringWithLiteralInitializers.ts, 57 , 13))
175
+ >y : Symbol(y, Decl(destructuringWithLiteralInitializers.ts, 57 , 15))
145
176
146
177
g4();
147
- >g4 : Symbol(g4, Decl(destructuringWithLiteralInitializers.ts, 46 , 11))
178
+ >g4 : Symbol(g4, Decl(destructuringWithLiteralInitializers.ts, 54 , 11))
148
179
149
180
g4([1, 1]);
150
- >g4 : Symbol(g4, Decl(destructuringWithLiteralInitializers.ts, 46 , 11))
181
+ >g4 : Symbol(g4, Decl(destructuringWithLiteralInitializers.ts, 54 , 11))
151
182
0 commit comments