mirror of
https://github.com/hanzoai/tsgo.git
synced 2026-10-30 19:37:15 +00:00
24 lines
468 B
TypeScript
24 lines
468 B
TypeScript
//// [tests/cases/compiler/assignmentNestedInLiterals.ts] ////
|
|
|
|
//// [assignmentNestedInLiterals.ts]
|
|
var target, x, y;
|
|
target = [x = 1, y = x];
|
|
|
|
var aegis, a, b;
|
|
aegis = { x: a = 1, y: b = a };
|
|
|
|
var kowloona, c, d;
|
|
for (kowloona of [c = 1, d = c]) {
|
|
}
|
|
|
|
|
|
//// [assignmentNestedInLiterals.js]
|
|
"use strict";
|
|
var target, x, y;
|
|
target = [x = 1, y = x];
|
|
var aegis, a, b;
|
|
aegis = { x: a = 1, y: b = a };
|
|
var kowloona, c, d;
|
|
for (kowloona of [c = 1, d = c]) {
|
|
}
|