Add for-of test case
This commit is contained in:
parent
125dd57a75
commit
a46cb033db
4 changed files with 40 additions and 0 deletions
|
@ -5,9 +5,17 @@ target = [x = 1, y = x];
|
||||||
var aegis, a, b;
|
var aegis, a, b;
|
||||||
aegis = { x: a = 1, y: b = a };
|
aegis = { x: a = 1, y: b = a };
|
||||||
|
|
||||||
|
var kowloona, c, d;
|
||||||
|
for (kowloona of [c = 1, d = c]) {
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
//// [assignmentNestedInLiterals.js]
|
//// [assignmentNestedInLiterals.js]
|
||||||
var target, x, y;
|
var target, x, y;
|
||||||
target = [x = 1, y = x];
|
target = [x = 1, y = x];
|
||||||
var aegis, a, b;
|
var aegis, a, b;
|
||||||
aegis = { x: a = 1, y: b = a };
|
aegis = { x: a = 1, y: b = a };
|
||||||
|
var kowloona, c, d;
|
||||||
|
for (var _i = 0, _a = [c = 1, d = c]; _i < _a.length; _i++) {
|
||||||
|
kowloona = _a[_i];
|
||||||
|
}
|
||||||
|
|
|
@ -23,3 +23,15 @@ aegis = { x: a = 1, y: b = a };
|
||||||
>b : Symbol(b, Decl(assignmentNestedInLiterals.ts, 3, 13))
|
>b : Symbol(b, Decl(assignmentNestedInLiterals.ts, 3, 13))
|
||||||
>a : Symbol(a, Decl(assignmentNestedInLiterals.ts, 3, 10))
|
>a : Symbol(a, Decl(assignmentNestedInLiterals.ts, 3, 10))
|
||||||
|
|
||||||
|
var kowloona, c, d;
|
||||||
|
>kowloona : Symbol(kowloona, Decl(assignmentNestedInLiterals.ts, 6, 3))
|
||||||
|
>c : Symbol(c, Decl(assignmentNestedInLiterals.ts, 6, 13))
|
||||||
|
>d : Symbol(d, Decl(assignmentNestedInLiterals.ts, 6, 16))
|
||||||
|
|
||||||
|
for (kowloona of [c = 1, d = c]) {
|
||||||
|
>kowloona : Symbol(kowloona, Decl(assignmentNestedInLiterals.ts, 6, 3))
|
||||||
|
>c : Symbol(c, Decl(assignmentNestedInLiterals.ts, 6, 13))
|
||||||
|
>d : Symbol(d, Decl(assignmentNestedInLiterals.ts, 6, 16))
|
||||||
|
>c : Symbol(c, Decl(assignmentNestedInLiterals.ts, 6, 13))
|
||||||
|
}
|
||||||
|
|
||||||
|
|
|
@ -33,3 +33,19 @@ aegis = { x: a = 1, y: b = a };
|
||||||
>b : any
|
>b : any
|
||||||
>a : number
|
>a : number
|
||||||
|
|
||||||
|
var kowloona, c, d;
|
||||||
|
>kowloona : any
|
||||||
|
>c : any
|
||||||
|
>d : any
|
||||||
|
|
||||||
|
for (kowloona of [c = 1, d = c]) {
|
||||||
|
>kowloona : any
|
||||||
|
>[c = 1, d = c] : number[]
|
||||||
|
>c = 1 : 1
|
||||||
|
>c : any
|
||||||
|
>1 : 1
|
||||||
|
>d = c : number
|
||||||
|
>d : any
|
||||||
|
>c : number
|
||||||
|
}
|
||||||
|
|
||||||
|
|
|
@ -4,3 +4,7 @@ target = [x = 1, y = x];
|
||||||
|
|
||||||
var aegis, a, b;
|
var aegis, a, b;
|
||||||
aegis = { x: a = 1, y: b = a };
|
aegis = { x: a = 1, y: b = a };
|
||||||
|
|
||||||
|
var kowloona, c, d;
|
||||||
|
for (kowloona of [c = 1, d = c]) {
|
||||||
|
}
|
||||||
|
|
Loading…
Reference in a new issue