mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-02-06 11:54:44 -06:00
Test case for For Of statement with array binding pattern
This commit is contained in:
parent
edd55ddf51
commit
d8701c437c
@ -0,0 +1,207 @@
|
||||
//// [sourceMapValidationDestructuringForOfArrayBindingPattern.ts]
|
||||
declare var console: {
|
||||
log(msg: any): void;
|
||||
}
|
||||
type Robot = [number, string, string];
|
||||
type MultiSkilledRobot = [string, [string, string]];
|
||||
|
||||
let robotA: Robot = [1, "mower", "mowing"];
|
||||
let robotB: Robot = [2, "trimmer", "trimming"];
|
||||
let robots = [robotA, robotB];
|
||||
function getRobots() {
|
||||
return robots;
|
||||
}
|
||||
|
||||
let multiRobotA: MultiSkilledRobot = ["mower", ["mowing", ""]];
|
||||
let multiRobotB: MultiSkilledRobot = ["trimmer", ["trimming", "edging"]];
|
||||
let multiRobots = [multiRobotA, multiRobotB];
|
||||
function getMultiRobots() {
|
||||
return multiRobots;
|
||||
}
|
||||
|
||||
for (let [, nameA] of robots) {
|
||||
console.log(nameA);
|
||||
}
|
||||
for (let [, nameA] of getRobots()) {
|
||||
console.log(nameA);
|
||||
}
|
||||
for (let [, nameA] of [robotA, robotB]) {
|
||||
console.log(nameA);
|
||||
}
|
||||
for (let [, [primarySkillA, secondarySkillA]] of multiRobots) {
|
||||
console.log(primarySkillA);
|
||||
}
|
||||
for (let [, [primarySkillA, secondarySkillA]] of getMultiRobots()) {
|
||||
console.log(primarySkillA);
|
||||
}
|
||||
for (let [, [primarySkillA, secondarySkillA]] of [multiRobotA, multiRobotB]) {
|
||||
console.log(primarySkillA);
|
||||
}
|
||||
|
||||
for (let [numberB] of robots) {
|
||||
console.log(numberB);
|
||||
}
|
||||
for (let [numberB] of getRobots()) {
|
||||
console.log(numberB);
|
||||
}
|
||||
for (let [numberB] of [robotA, robotB]) {
|
||||
console.log(numberB);
|
||||
}
|
||||
for (let [nameB] of multiRobots) {
|
||||
console.log(nameB);
|
||||
}
|
||||
for (let [nameB] of getMultiRobots()) {
|
||||
console.log(nameB);
|
||||
}
|
||||
for (let [nameB] of [multiRobotA, multiRobotB]) {
|
||||
console.log(nameB);
|
||||
}
|
||||
|
||||
for (let [numberA2, nameA2, skillA2] of robots) {
|
||||
console.log(nameA2);
|
||||
}
|
||||
for (let [numberA2, nameA2, skillA2] of getRobots()) {
|
||||
console.log(nameA2);
|
||||
}
|
||||
for (let [numberA2, nameA2, skillA2] of [robotA, robotB]) {
|
||||
console.log(nameA2);
|
||||
}
|
||||
for (let [nameMA, [primarySkillA, secondarySkillA]] of multiRobots) {
|
||||
console.log(nameMA);
|
||||
}
|
||||
for (let [nameMA, [primarySkillA, secondarySkillA]] of getMultiRobots()) {
|
||||
console.log(nameMA);
|
||||
}
|
||||
for (let [nameMA, [primarySkillA, secondarySkillA]] of [multiRobotA, multiRobotB]) {
|
||||
console.log(nameMA);
|
||||
}
|
||||
|
||||
for (let [numberA3, ...robotAInfo] of robots) {
|
||||
console.log(numberA3);
|
||||
}
|
||||
for (let [numberA3, ...robotAInfo] of getRobots()) {
|
||||
console.log(numberA3);
|
||||
}
|
||||
for (let [numberA3, ...robotAInfo] of [robotA, robotB]) {
|
||||
console.log(numberA3);
|
||||
}
|
||||
for (let [...multiRobotAInfo] of multiRobots) {
|
||||
console.log(multiRobotAInfo);
|
||||
}
|
||||
for (let [...multiRobotAInfo] of getMultiRobots()) {
|
||||
console.log(multiRobotAInfo);
|
||||
}
|
||||
for (let [...multiRobotAInfo] of [multiRobotA, multiRobotB]) {
|
||||
console.log(multiRobotAInfo);
|
||||
}
|
||||
|
||||
//// [sourceMapValidationDestructuringForOfArrayBindingPattern.js]
|
||||
var robotA = [1, "mower", "mowing"];
|
||||
var robotB = [2, "trimmer", "trimming"];
|
||||
var robots = [robotA, robotB];
|
||||
function getRobots() {
|
||||
return robots;
|
||||
}
|
||||
var multiRobotA = ["mower", ["mowing", ""]];
|
||||
var multiRobotB = ["trimmer", ["trimming", "edging"]];
|
||||
var multiRobots = [multiRobotA, multiRobotB];
|
||||
function getMultiRobots() {
|
||||
return multiRobots;
|
||||
}
|
||||
for (var _i = 0, robots_1 = robots; _i < robots_1.length; _i++) {
|
||||
var _a = robots_1[_i], nameA = _a[1];
|
||||
console.log(nameA);
|
||||
}
|
||||
for (var _b = 0, _c = getRobots(); _b < _c.length; _b++) {
|
||||
var _d = _c[_b], nameA = _d[1];
|
||||
console.log(nameA);
|
||||
}
|
||||
for (var _e = 0, _f = [robotA, robotB]; _e < _f.length; _e++) {
|
||||
var _g = _f[_e], nameA = _g[1];
|
||||
console.log(nameA);
|
||||
}
|
||||
for (var _h = 0, multiRobots_1 = multiRobots; _h < multiRobots_1.length; _h++) {
|
||||
var _j = multiRobots_1[_h], _k = _j[1], primarySkillA = _k[0], secondarySkillA = _k[1];
|
||||
console.log(primarySkillA);
|
||||
}
|
||||
for (var _l = 0, _m = getMultiRobots(); _l < _m.length; _l++) {
|
||||
var _o = _m[_l], _p = _o[1], primarySkillA = _p[0], secondarySkillA = _p[1];
|
||||
console.log(primarySkillA);
|
||||
}
|
||||
for (var _q = 0, _r = [multiRobotA, multiRobotB]; _q < _r.length; _q++) {
|
||||
var _s = _r[_q], _t = _s[1], primarySkillA = _t[0], secondarySkillA = _t[1];
|
||||
console.log(primarySkillA);
|
||||
}
|
||||
for (var _u = 0, robots_2 = robots; _u < robots_2.length; _u++) {
|
||||
var numberB = robots_2[_u][0];
|
||||
console.log(numberB);
|
||||
}
|
||||
for (var _v = 0, _w = getRobots(); _v < _w.length; _v++) {
|
||||
var numberB = _w[_v][0];
|
||||
console.log(numberB);
|
||||
}
|
||||
for (var _x = 0, _y = [robotA, robotB]; _x < _y.length; _x++) {
|
||||
var numberB = _y[_x][0];
|
||||
console.log(numberB);
|
||||
}
|
||||
for (var _z = 0, multiRobots_2 = multiRobots; _z < multiRobots_2.length; _z++) {
|
||||
var nameB = multiRobots_2[_z][0];
|
||||
console.log(nameB);
|
||||
}
|
||||
for (var _0 = 0, _1 = getMultiRobots(); _0 < _1.length; _0++) {
|
||||
var nameB = _1[_0][0];
|
||||
console.log(nameB);
|
||||
}
|
||||
for (var _2 = 0, _3 = [multiRobotA, multiRobotB]; _2 < _3.length; _2++) {
|
||||
var nameB = _3[_2][0];
|
||||
console.log(nameB);
|
||||
}
|
||||
for (var _4 = 0, robots_3 = robots; _4 < robots_3.length; _4++) {
|
||||
var _5 = robots_3[_4], numberA2 = _5[0], nameA2 = _5[1], skillA2 = _5[2];
|
||||
console.log(nameA2);
|
||||
}
|
||||
for (var _6 = 0, _7 = getRobots(); _6 < _7.length; _6++) {
|
||||
var _8 = _7[_6], numberA2 = _8[0], nameA2 = _8[1], skillA2 = _8[2];
|
||||
console.log(nameA2);
|
||||
}
|
||||
for (var _9 = 0, _10 = [robotA, robotB]; _9 < _10.length; _9++) {
|
||||
var _11 = _10[_9], numberA2 = _11[0], nameA2 = _11[1], skillA2 = _11[2];
|
||||
console.log(nameA2);
|
||||
}
|
||||
for (var _12 = 0, multiRobots_3 = multiRobots; _12 < multiRobots_3.length; _12++) {
|
||||
var _13 = multiRobots_3[_12], nameMA = _13[0], _14 = _13[1], primarySkillA = _14[0], secondarySkillA = _14[1];
|
||||
console.log(nameMA);
|
||||
}
|
||||
for (var _15 = 0, _16 = getMultiRobots(); _15 < _16.length; _15++) {
|
||||
var _17 = _16[_15], nameMA = _17[0], _18 = _17[1], primarySkillA = _18[0], secondarySkillA = _18[1];
|
||||
console.log(nameMA);
|
||||
}
|
||||
for (var _19 = 0, _20 = [multiRobotA, multiRobotB]; _19 < _20.length; _19++) {
|
||||
var _21 = _20[_19], nameMA = _21[0], _22 = _21[1], primarySkillA = _22[0], secondarySkillA = _22[1];
|
||||
console.log(nameMA);
|
||||
}
|
||||
for (var _23 = 0, robots_4 = robots; _23 < robots_4.length; _23++) {
|
||||
var _24 = robots_4[_23], numberA3 = _24[0], robotAInfo = _24.slice(1);
|
||||
console.log(numberA3);
|
||||
}
|
||||
for (var _25 = 0, _26 = getRobots(); _25 < _26.length; _25++) {
|
||||
var _27 = _26[_25], numberA3 = _27[0], robotAInfo = _27.slice(1);
|
||||
console.log(numberA3);
|
||||
}
|
||||
for (var _28 = 0, _29 = [robotA, robotB]; _28 < _29.length; _28++) {
|
||||
var _30 = _29[_28], numberA3 = _30[0], robotAInfo = _30.slice(1);
|
||||
console.log(numberA3);
|
||||
}
|
||||
for (var _31 = 0, multiRobots_4 = multiRobots; _31 < multiRobots_4.length; _31++) {
|
||||
var multiRobotAInfo = multiRobots_4[_31].slice(0);
|
||||
console.log(multiRobotAInfo);
|
||||
}
|
||||
for (var _32 = 0, _33 = getMultiRobots(); _32 < _33.length; _32++) {
|
||||
var multiRobotAInfo = _33[_32].slice(0);
|
||||
console.log(multiRobotAInfo);
|
||||
}
|
||||
for (var _34 = 0, _35 = [multiRobotA, multiRobotB]; _34 < _35.length; _34++) {
|
||||
var multiRobotAInfo = _35[_34].slice(0);
|
||||
console.log(multiRobotAInfo);
|
||||
}
|
||||
//# sourceMappingURL=sourceMapValidationDestructuringForOfArrayBindingPattern.js.map
|
||||
@ -0,0 +1,2 @@
|
||||
//// [sourceMapValidationDestructuringForOfArrayBindingPattern.js.map]
|
||||
{"version":3,"file":"sourceMapValidationDestructuringForOfArrayBindingPattern.js","sourceRoot":"","sources":["sourceMapValidationDestructuringForOfArrayBindingPattern.ts"],"names":[],"mappings":"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"}
|
||||
File diff suppressed because it is too large
Load Diff
@ -0,0 +1,323 @@
|
||||
=== tests/cases/compiler/sourceMapValidationDestructuringForOfArrayBindingPattern.ts ===
|
||||
declare var console: {
|
||||
>console : Symbol(console, Decl(sourceMapValidationDestructuringForOfArrayBindingPattern.ts, 0, 11))
|
||||
|
||||
log(msg: any): void;
|
||||
>log : Symbol(log, Decl(sourceMapValidationDestructuringForOfArrayBindingPattern.ts, 0, 22))
|
||||
>msg : Symbol(msg, Decl(sourceMapValidationDestructuringForOfArrayBindingPattern.ts, 1, 8))
|
||||
}
|
||||
type Robot = [number, string, string];
|
||||
>Robot : Symbol(Robot, Decl(sourceMapValidationDestructuringForOfArrayBindingPattern.ts, 2, 1))
|
||||
|
||||
type MultiSkilledRobot = [string, [string, string]];
|
||||
>MultiSkilledRobot : Symbol(MultiSkilledRobot, Decl(sourceMapValidationDestructuringForOfArrayBindingPattern.ts, 3, 38))
|
||||
|
||||
let robotA: Robot = [1, "mower", "mowing"];
|
||||
>robotA : Symbol(robotA, Decl(sourceMapValidationDestructuringForOfArrayBindingPattern.ts, 6, 3))
|
||||
>Robot : Symbol(Robot, Decl(sourceMapValidationDestructuringForOfArrayBindingPattern.ts, 2, 1))
|
||||
|
||||
let robotB: Robot = [2, "trimmer", "trimming"];
|
||||
>robotB : Symbol(robotB, Decl(sourceMapValidationDestructuringForOfArrayBindingPattern.ts, 7, 3))
|
||||
>Robot : Symbol(Robot, Decl(sourceMapValidationDestructuringForOfArrayBindingPattern.ts, 2, 1))
|
||||
|
||||
let robots = [robotA, robotB];
|
||||
>robots : Symbol(robots, Decl(sourceMapValidationDestructuringForOfArrayBindingPattern.ts, 8, 3))
|
||||
>robotA : Symbol(robotA, Decl(sourceMapValidationDestructuringForOfArrayBindingPattern.ts, 6, 3))
|
||||
>robotB : Symbol(robotB, Decl(sourceMapValidationDestructuringForOfArrayBindingPattern.ts, 7, 3))
|
||||
|
||||
function getRobots() {
|
||||
>getRobots : Symbol(getRobots, Decl(sourceMapValidationDestructuringForOfArrayBindingPattern.ts, 8, 30))
|
||||
|
||||
return robots;
|
||||
>robots : Symbol(robots, Decl(sourceMapValidationDestructuringForOfArrayBindingPattern.ts, 8, 3))
|
||||
}
|
||||
|
||||
let multiRobotA: MultiSkilledRobot = ["mower", ["mowing", ""]];
|
||||
>multiRobotA : Symbol(multiRobotA, Decl(sourceMapValidationDestructuringForOfArrayBindingPattern.ts, 13, 3))
|
||||
>MultiSkilledRobot : Symbol(MultiSkilledRobot, Decl(sourceMapValidationDestructuringForOfArrayBindingPattern.ts, 3, 38))
|
||||
|
||||
let multiRobotB: MultiSkilledRobot = ["trimmer", ["trimming", "edging"]];
|
||||
>multiRobotB : Symbol(multiRobotB, Decl(sourceMapValidationDestructuringForOfArrayBindingPattern.ts, 14, 3))
|
||||
>MultiSkilledRobot : Symbol(MultiSkilledRobot, Decl(sourceMapValidationDestructuringForOfArrayBindingPattern.ts, 3, 38))
|
||||
|
||||
let multiRobots = [multiRobotA, multiRobotB];
|
||||
>multiRobots : Symbol(multiRobots, Decl(sourceMapValidationDestructuringForOfArrayBindingPattern.ts, 15, 3))
|
||||
>multiRobotA : Symbol(multiRobotA, Decl(sourceMapValidationDestructuringForOfArrayBindingPattern.ts, 13, 3))
|
||||
>multiRobotB : Symbol(multiRobotB, Decl(sourceMapValidationDestructuringForOfArrayBindingPattern.ts, 14, 3))
|
||||
|
||||
function getMultiRobots() {
|
||||
>getMultiRobots : Symbol(getMultiRobots, Decl(sourceMapValidationDestructuringForOfArrayBindingPattern.ts, 15, 45))
|
||||
|
||||
return multiRobots;
|
||||
>multiRobots : Symbol(multiRobots, Decl(sourceMapValidationDestructuringForOfArrayBindingPattern.ts, 15, 3))
|
||||
}
|
||||
|
||||
for (let [, nameA] of robots) {
|
||||
>nameA : Symbol(nameA, Decl(sourceMapValidationDestructuringForOfArrayBindingPattern.ts, 20, 11))
|
||||
>robots : Symbol(robots, Decl(sourceMapValidationDestructuringForOfArrayBindingPattern.ts, 8, 3))
|
||||
|
||||
console.log(nameA);
|
||||
>console.log : Symbol(log, Decl(sourceMapValidationDestructuringForOfArrayBindingPattern.ts, 0, 22))
|
||||
>console : Symbol(console, Decl(sourceMapValidationDestructuringForOfArrayBindingPattern.ts, 0, 11))
|
||||
>log : Symbol(log, Decl(sourceMapValidationDestructuringForOfArrayBindingPattern.ts, 0, 22))
|
||||
>nameA : Symbol(nameA, Decl(sourceMapValidationDestructuringForOfArrayBindingPattern.ts, 20, 11))
|
||||
}
|
||||
for (let [, nameA] of getRobots()) {
|
||||
>nameA : Symbol(nameA, Decl(sourceMapValidationDestructuringForOfArrayBindingPattern.ts, 23, 11))
|
||||
>getRobots : Symbol(getRobots, Decl(sourceMapValidationDestructuringForOfArrayBindingPattern.ts, 8, 30))
|
||||
|
||||
console.log(nameA);
|
||||
>console.log : Symbol(log, Decl(sourceMapValidationDestructuringForOfArrayBindingPattern.ts, 0, 22))
|
||||
>console : Symbol(console, Decl(sourceMapValidationDestructuringForOfArrayBindingPattern.ts, 0, 11))
|
||||
>log : Symbol(log, Decl(sourceMapValidationDestructuringForOfArrayBindingPattern.ts, 0, 22))
|
||||
>nameA : Symbol(nameA, Decl(sourceMapValidationDestructuringForOfArrayBindingPattern.ts, 23, 11))
|
||||
}
|
||||
for (let [, nameA] of [robotA, robotB]) {
|
||||
>nameA : Symbol(nameA, Decl(sourceMapValidationDestructuringForOfArrayBindingPattern.ts, 26, 11))
|
||||
>robotA : Symbol(robotA, Decl(sourceMapValidationDestructuringForOfArrayBindingPattern.ts, 6, 3))
|
||||
>robotB : Symbol(robotB, Decl(sourceMapValidationDestructuringForOfArrayBindingPattern.ts, 7, 3))
|
||||
|
||||
console.log(nameA);
|
||||
>console.log : Symbol(log, Decl(sourceMapValidationDestructuringForOfArrayBindingPattern.ts, 0, 22))
|
||||
>console : Symbol(console, Decl(sourceMapValidationDestructuringForOfArrayBindingPattern.ts, 0, 11))
|
||||
>log : Symbol(log, Decl(sourceMapValidationDestructuringForOfArrayBindingPattern.ts, 0, 22))
|
||||
>nameA : Symbol(nameA, Decl(sourceMapValidationDestructuringForOfArrayBindingPattern.ts, 26, 11))
|
||||
}
|
||||
for (let [, [primarySkillA, secondarySkillA]] of multiRobots) {
|
||||
>primarySkillA : Symbol(primarySkillA, Decl(sourceMapValidationDestructuringForOfArrayBindingPattern.ts, 29, 13))
|
||||
>secondarySkillA : Symbol(secondarySkillA, Decl(sourceMapValidationDestructuringForOfArrayBindingPattern.ts, 29, 27))
|
||||
>multiRobots : Symbol(multiRobots, Decl(sourceMapValidationDestructuringForOfArrayBindingPattern.ts, 15, 3))
|
||||
|
||||
console.log(primarySkillA);
|
||||
>console.log : Symbol(log, Decl(sourceMapValidationDestructuringForOfArrayBindingPattern.ts, 0, 22))
|
||||
>console : Symbol(console, Decl(sourceMapValidationDestructuringForOfArrayBindingPattern.ts, 0, 11))
|
||||
>log : Symbol(log, Decl(sourceMapValidationDestructuringForOfArrayBindingPattern.ts, 0, 22))
|
||||
>primarySkillA : Symbol(primarySkillA, Decl(sourceMapValidationDestructuringForOfArrayBindingPattern.ts, 29, 13))
|
||||
}
|
||||
for (let [, [primarySkillA, secondarySkillA]] of getMultiRobots()) {
|
||||
>primarySkillA : Symbol(primarySkillA, Decl(sourceMapValidationDestructuringForOfArrayBindingPattern.ts, 32, 13))
|
||||
>secondarySkillA : Symbol(secondarySkillA, Decl(sourceMapValidationDestructuringForOfArrayBindingPattern.ts, 32, 27))
|
||||
>getMultiRobots : Symbol(getMultiRobots, Decl(sourceMapValidationDestructuringForOfArrayBindingPattern.ts, 15, 45))
|
||||
|
||||
console.log(primarySkillA);
|
||||
>console.log : Symbol(log, Decl(sourceMapValidationDestructuringForOfArrayBindingPattern.ts, 0, 22))
|
||||
>console : Symbol(console, Decl(sourceMapValidationDestructuringForOfArrayBindingPattern.ts, 0, 11))
|
||||
>log : Symbol(log, Decl(sourceMapValidationDestructuringForOfArrayBindingPattern.ts, 0, 22))
|
||||
>primarySkillA : Symbol(primarySkillA, Decl(sourceMapValidationDestructuringForOfArrayBindingPattern.ts, 32, 13))
|
||||
}
|
||||
for (let [, [primarySkillA, secondarySkillA]] of [multiRobotA, multiRobotB]) {
|
||||
>primarySkillA : Symbol(primarySkillA, Decl(sourceMapValidationDestructuringForOfArrayBindingPattern.ts, 35, 13))
|
||||
>secondarySkillA : Symbol(secondarySkillA, Decl(sourceMapValidationDestructuringForOfArrayBindingPattern.ts, 35, 27))
|
||||
>multiRobotA : Symbol(multiRobotA, Decl(sourceMapValidationDestructuringForOfArrayBindingPattern.ts, 13, 3))
|
||||
>multiRobotB : Symbol(multiRobotB, Decl(sourceMapValidationDestructuringForOfArrayBindingPattern.ts, 14, 3))
|
||||
|
||||
console.log(primarySkillA);
|
||||
>console.log : Symbol(log, Decl(sourceMapValidationDestructuringForOfArrayBindingPattern.ts, 0, 22))
|
||||
>console : Symbol(console, Decl(sourceMapValidationDestructuringForOfArrayBindingPattern.ts, 0, 11))
|
||||
>log : Symbol(log, Decl(sourceMapValidationDestructuringForOfArrayBindingPattern.ts, 0, 22))
|
||||
>primarySkillA : Symbol(primarySkillA, Decl(sourceMapValidationDestructuringForOfArrayBindingPattern.ts, 35, 13))
|
||||
}
|
||||
|
||||
for (let [numberB] of robots) {
|
||||
>numberB : Symbol(numberB, Decl(sourceMapValidationDestructuringForOfArrayBindingPattern.ts, 39, 10))
|
||||
>robots : Symbol(robots, Decl(sourceMapValidationDestructuringForOfArrayBindingPattern.ts, 8, 3))
|
||||
|
||||
console.log(numberB);
|
||||
>console.log : Symbol(log, Decl(sourceMapValidationDestructuringForOfArrayBindingPattern.ts, 0, 22))
|
||||
>console : Symbol(console, Decl(sourceMapValidationDestructuringForOfArrayBindingPattern.ts, 0, 11))
|
||||
>log : Symbol(log, Decl(sourceMapValidationDestructuringForOfArrayBindingPattern.ts, 0, 22))
|
||||
>numberB : Symbol(numberB, Decl(sourceMapValidationDestructuringForOfArrayBindingPattern.ts, 39, 10))
|
||||
}
|
||||
for (let [numberB] of getRobots()) {
|
||||
>numberB : Symbol(numberB, Decl(sourceMapValidationDestructuringForOfArrayBindingPattern.ts, 42, 10))
|
||||
>getRobots : Symbol(getRobots, Decl(sourceMapValidationDestructuringForOfArrayBindingPattern.ts, 8, 30))
|
||||
|
||||
console.log(numberB);
|
||||
>console.log : Symbol(log, Decl(sourceMapValidationDestructuringForOfArrayBindingPattern.ts, 0, 22))
|
||||
>console : Symbol(console, Decl(sourceMapValidationDestructuringForOfArrayBindingPattern.ts, 0, 11))
|
||||
>log : Symbol(log, Decl(sourceMapValidationDestructuringForOfArrayBindingPattern.ts, 0, 22))
|
||||
>numberB : Symbol(numberB, Decl(sourceMapValidationDestructuringForOfArrayBindingPattern.ts, 42, 10))
|
||||
}
|
||||
for (let [numberB] of [robotA, robotB]) {
|
||||
>numberB : Symbol(numberB, Decl(sourceMapValidationDestructuringForOfArrayBindingPattern.ts, 45, 10))
|
||||
>robotA : Symbol(robotA, Decl(sourceMapValidationDestructuringForOfArrayBindingPattern.ts, 6, 3))
|
||||
>robotB : Symbol(robotB, Decl(sourceMapValidationDestructuringForOfArrayBindingPattern.ts, 7, 3))
|
||||
|
||||
console.log(numberB);
|
||||
>console.log : Symbol(log, Decl(sourceMapValidationDestructuringForOfArrayBindingPattern.ts, 0, 22))
|
||||
>console : Symbol(console, Decl(sourceMapValidationDestructuringForOfArrayBindingPattern.ts, 0, 11))
|
||||
>log : Symbol(log, Decl(sourceMapValidationDestructuringForOfArrayBindingPattern.ts, 0, 22))
|
||||
>numberB : Symbol(numberB, Decl(sourceMapValidationDestructuringForOfArrayBindingPattern.ts, 45, 10))
|
||||
}
|
||||
for (let [nameB] of multiRobots) {
|
||||
>nameB : Symbol(nameB, Decl(sourceMapValidationDestructuringForOfArrayBindingPattern.ts, 48, 10))
|
||||
>multiRobots : Symbol(multiRobots, Decl(sourceMapValidationDestructuringForOfArrayBindingPattern.ts, 15, 3))
|
||||
|
||||
console.log(nameB);
|
||||
>console.log : Symbol(log, Decl(sourceMapValidationDestructuringForOfArrayBindingPattern.ts, 0, 22))
|
||||
>console : Symbol(console, Decl(sourceMapValidationDestructuringForOfArrayBindingPattern.ts, 0, 11))
|
||||
>log : Symbol(log, Decl(sourceMapValidationDestructuringForOfArrayBindingPattern.ts, 0, 22))
|
||||
>nameB : Symbol(nameB, Decl(sourceMapValidationDestructuringForOfArrayBindingPattern.ts, 48, 10))
|
||||
}
|
||||
for (let [nameB] of getMultiRobots()) {
|
||||
>nameB : Symbol(nameB, Decl(sourceMapValidationDestructuringForOfArrayBindingPattern.ts, 51, 10))
|
||||
>getMultiRobots : Symbol(getMultiRobots, Decl(sourceMapValidationDestructuringForOfArrayBindingPattern.ts, 15, 45))
|
||||
|
||||
console.log(nameB);
|
||||
>console.log : Symbol(log, Decl(sourceMapValidationDestructuringForOfArrayBindingPattern.ts, 0, 22))
|
||||
>console : Symbol(console, Decl(sourceMapValidationDestructuringForOfArrayBindingPattern.ts, 0, 11))
|
||||
>log : Symbol(log, Decl(sourceMapValidationDestructuringForOfArrayBindingPattern.ts, 0, 22))
|
||||
>nameB : Symbol(nameB, Decl(sourceMapValidationDestructuringForOfArrayBindingPattern.ts, 51, 10))
|
||||
}
|
||||
for (let [nameB] of [multiRobotA, multiRobotB]) {
|
||||
>nameB : Symbol(nameB, Decl(sourceMapValidationDestructuringForOfArrayBindingPattern.ts, 54, 10))
|
||||
>multiRobotA : Symbol(multiRobotA, Decl(sourceMapValidationDestructuringForOfArrayBindingPattern.ts, 13, 3))
|
||||
>multiRobotB : Symbol(multiRobotB, Decl(sourceMapValidationDestructuringForOfArrayBindingPattern.ts, 14, 3))
|
||||
|
||||
console.log(nameB);
|
||||
>console.log : Symbol(log, Decl(sourceMapValidationDestructuringForOfArrayBindingPattern.ts, 0, 22))
|
||||
>console : Symbol(console, Decl(sourceMapValidationDestructuringForOfArrayBindingPattern.ts, 0, 11))
|
||||
>log : Symbol(log, Decl(sourceMapValidationDestructuringForOfArrayBindingPattern.ts, 0, 22))
|
||||
>nameB : Symbol(nameB, Decl(sourceMapValidationDestructuringForOfArrayBindingPattern.ts, 54, 10))
|
||||
}
|
||||
|
||||
for (let [numberA2, nameA2, skillA2] of robots) {
|
||||
>numberA2 : Symbol(numberA2, Decl(sourceMapValidationDestructuringForOfArrayBindingPattern.ts, 58, 10))
|
||||
>nameA2 : Symbol(nameA2, Decl(sourceMapValidationDestructuringForOfArrayBindingPattern.ts, 58, 19))
|
||||
>skillA2 : Symbol(skillA2, Decl(sourceMapValidationDestructuringForOfArrayBindingPattern.ts, 58, 27))
|
||||
>robots : Symbol(robots, Decl(sourceMapValidationDestructuringForOfArrayBindingPattern.ts, 8, 3))
|
||||
|
||||
console.log(nameA2);
|
||||
>console.log : Symbol(log, Decl(sourceMapValidationDestructuringForOfArrayBindingPattern.ts, 0, 22))
|
||||
>console : Symbol(console, Decl(sourceMapValidationDestructuringForOfArrayBindingPattern.ts, 0, 11))
|
||||
>log : Symbol(log, Decl(sourceMapValidationDestructuringForOfArrayBindingPattern.ts, 0, 22))
|
||||
>nameA2 : Symbol(nameA2, Decl(sourceMapValidationDestructuringForOfArrayBindingPattern.ts, 58, 19))
|
||||
}
|
||||
for (let [numberA2, nameA2, skillA2] of getRobots()) {
|
||||
>numberA2 : Symbol(numberA2, Decl(sourceMapValidationDestructuringForOfArrayBindingPattern.ts, 61, 10))
|
||||
>nameA2 : Symbol(nameA2, Decl(sourceMapValidationDestructuringForOfArrayBindingPattern.ts, 61, 19))
|
||||
>skillA2 : Symbol(skillA2, Decl(sourceMapValidationDestructuringForOfArrayBindingPattern.ts, 61, 27))
|
||||
>getRobots : Symbol(getRobots, Decl(sourceMapValidationDestructuringForOfArrayBindingPattern.ts, 8, 30))
|
||||
|
||||
console.log(nameA2);
|
||||
>console.log : Symbol(log, Decl(sourceMapValidationDestructuringForOfArrayBindingPattern.ts, 0, 22))
|
||||
>console : Symbol(console, Decl(sourceMapValidationDestructuringForOfArrayBindingPattern.ts, 0, 11))
|
||||
>log : Symbol(log, Decl(sourceMapValidationDestructuringForOfArrayBindingPattern.ts, 0, 22))
|
||||
>nameA2 : Symbol(nameA2, Decl(sourceMapValidationDestructuringForOfArrayBindingPattern.ts, 61, 19))
|
||||
}
|
||||
for (let [numberA2, nameA2, skillA2] of [robotA, robotB]) {
|
||||
>numberA2 : Symbol(numberA2, Decl(sourceMapValidationDestructuringForOfArrayBindingPattern.ts, 64, 10))
|
||||
>nameA2 : Symbol(nameA2, Decl(sourceMapValidationDestructuringForOfArrayBindingPattern.ts, 64, 19))
|
||||
>skillA2 : Symbol(skillA2, Decl(sourceMapValidationDestructuringForOfArrayBindingPattern.ts, 64, 27))
|
||||
>robotA : Symbol(robotA, Decl(sourceMapValidationDestructuringForOfArrayBindingPattern.ts, 6, 3))
|
||||
>robotB : Symbol(robotB, Decl(sourceMapValidationDestructuringForOfArrayBindingPattern.ts, 7, 3))
|
||||
|
||||
console.log(nameA2);
|
||||
>console.log : Symbol(log, Decl(sourceMapValidationDestructuringForOfArrayBindingPattern.ts, 0, 22))
|
||||
>console : Symbol(console, Decl(sourceMapValidationDestructuringForOfArrayBindingPattern.ts, 0, 11))
|
||||
>log : Symbol(log, Decl(sourceMapValidationDestructuringForOfArrayBindingPattern.ts, 0, 22))
|
||||
>nameA2 : Symbol(nameA2, Decl(sourceMapValidationDestructuringForOfArrayBindingPattern.ts, 64, 19))
|
||||
}
|
||||
for (let [nameMA, [primarySkillA, secondarySkillA]] of multiRobots) {
|
||||
>nameMA : Symbol(nameMA, Decl(sourceMapValidationDestructuringForOfArrayBindingPattern.ts, 67, 10))
|
||||
>primarySkillA : Symbol(primarySkillA, Decl(sourceMapValidationDestructuringForOfArrayBindingPattern.ts, 67, 19))
|
||||
>secondarySkillA : Symbol(secondarySkillA, Decl(sourceMapValidationDestructuringForOfArrayBindingPattern.ts, 67, 33))
|
||||
>multiRobots : Symbol(multiRobots, Decl(sourceMapValidationDestructuringForOfArrayBindingPattern.ts, 15, 3))
|
||||
|
||||
console.log(nameMA);
|
||||
>console.log : Symbol(log, Decl(sourceMapValidationDestructuringForOfArrayBindingPattern.ts, 0, 22))
|
||||
>console : Symbol(console, Decl(sourceMapValidationDestructuringForOfArrayBindingPattern.ts, 0, 11))
|
||||
>log : Symbol(log, Decl(sourceMapValidationDestructuringForOfArrayBindingPattern.ts, 0, 22))
|
||||
>nameMA : Symbol(nameMA, Decl(sourceMapValidationDestructuringForOfArrayBindingPattern.ts, 67, 10))
|
||||
}
|
||||
for (let [nameMA, [primarySkillA, secondarySkillA]] of getMultiRobots()) {
|
||||
>nameMA : Symbol(nameMA, Decl(sourceMapValidationDestructuringForOfArrayBindingPattern.ts, 70, 10))
|
||||
>primarySkillA : Symbol(primarySkillA, Decl(sourceMapValidationDestructuringForOfArrayBindingPattern.ts, 70, 19))
|
||||
>secondarySkillA : Symbol(secondarySkillA, Decl(sourceMapValidationDestructuringForOfArrayBindingPattern.ts, 70, 33))
|
||||
>getMultiRobots : Symbol(getMultiRobots, Decl(sourceMapValidationDestructuringForOfArrayBindingPattern.ts, 15, 45))
|
||||
|
||||
console.log(nameMA);
|
||||
>console.log : Symbol(log, Decl(sourceMapValidationDestructuringForOfArrayBindingPattern.ts, 0, 22))
|
||||
>console : Symbol(console, Decl(sourceMapValidationDestructuringForOfArrayBindingPattern.ts, 0, 11))
|
||||
>log : Symbol(log, Decl(sourceMapValidationDestructuringForOfArrayBindingPattern.ts, 0, 22))
|
||||
>nameMA : Symbol(nameMA, Decl(sourceMapValidationDestructuringForOfArrayBindingPattern.ts, 70, 10))
|
||||
}
|
||||
for (let [nameMA, [primarySkillA, secondarySkillA]] of [multiRobotA, multiRobotB]) {
|
||||
>nameMA : Symbol(nameMA, Decl(sourceMapValidationDestructuringForOfArrayBindingPattern.ts, 73, 10))
|
||||
>primarySkillA : Symbol(primarySkillA, Decl(sourceMapValidationDestructuringForOfArrayBindingPattern.ts, 73, 19))
|
||||
>secondarySkillA : Symbol(secondarySkillA, Decl(sourceMapValidationDestructuringForOfArrayBindingPattern.ts, 73, 33))
|
||||
>multiRobotA : Symbol(multiRobotA, Decl(sourceMapValidationDestructuringForOfArrayBindingPattern.ts, 13, 3))
|
||||
>multiRobotB : Symbol(multiRobotB, Decl(sourceMapValidationDestructuringForOfArrayBindingPattern.ts, 14, 3))
|
||||
|
||||
console.log(nameMA);
|
||||
>console.log : Symbol(log, Decl(sourceMapValidationDestructuringForOfArrayBindingPattern.ts, 0, 22))
|
||||
>console : Symbol(console, Decl(sourceMapValidationDestructuringForOfArrayBindingPattern.ts, 0, 11))
|
||||
>log : Symbol(log, Decl(sourceMapValidationDestructuringForOfArrayBindingPattern.ts, 0, 22))
|
||||
>nameMA : Symbol(nameMA, Decl(sourceMapValidationDestructuringForOfArrayBindingPattern.ts, 73, 10))
|
||||
}
|
||||
|
||||
for (let [numberA3, ...robotAInfo] of robots) {
|
||||
>numberA3 : Symbol(numberA3, Decl(sourceMapValidationDestructuringForOfArrayBindingPattern.ts, 77, 10))
|
||||
>robotAInfo : Symbol(robotAInfo, Decl(sourceMapValidationDestructuringForOfArrayBindingPattern.ts, 77, 19))
|
||||
>robots : Symbol(robots, Decl(sourceMapValidationDestructuringForOfArrayBindingPattern.ts, 8, 3))
|
||||
|
||||
console.log(numberA3);
|
||||
>console.log : Symbol(log, Decl(sourceMapValidationDestructuringForOfArrayBindingPattern.ts, 0, 22))
|
||||
>console : Symbol(console, Decl(sourceMapValidationDestructuringForOfArrayBindingPattern.ts, 0, 11))
|
||||
>log : Symbol(log, Decl(sourceMapValidationDestructuringForOfArrayBindingPattern.ts, 0, 22))
|
||||
>numberA3 : Symbol(numberA3, Decl(sourceMapValidationDestructuringForOfArrayBindingPattern.ts, 77, 10))
|
||||
}
|
||||
for (let [numberA3, ...robotAInfo] of getRobots()) {
|
||||
>numberA3 : Symbol(numberA3, Decl(sourceMapValidationDestructuringForOfArrayBindingPattern.ts, 80, 10))
|
||||
>robotAInfo : Symbol(robotAInfo, Decl(sourceMapValidationDestructuringForOfArrayBindingPattern.ts, 80, 19))
|
||||
>getRobots : Symbol(getRobots, Decl(sourceMapValidationDestructuringForOfArrayBindingPattern.ts, 8, 30))
|
||||
|
||||
console.log(numberA3);
|
||||
>console.log : Symbol(log, Decl(sourceMapValidationDestructuringForOfArrayBindingPattern.ts, 0, 22))
|
||||
>console : Symbol(console, Decl(sourceMapValidationDestructuringForOfArrayBindingPattern.ts, 0, 11))
|
||||
>log : Symbol(log, Decl(sourceMapValidationDestructuringForOfArrayBindingPattern.ts, 0, 22))
|
||||
>numberA3 : Symbol(numberA3, Decl(sourceMapValidationDestructuringForOfArrayBindingPattern.ts, 80, 10))
|
||||
}
|
||||
for (let [numberA3, ...robotAInfo] of [robotA, robotB]) {
|
||||
>numberA3 : Symbol(numberA3, Decl(sourceMapValidationDestructuringForOfArrayBindingPattern.ts, 83, 10))
|
||||
>robotAInfo : Symbol(robotAInfo, Decl(sourceMapValidationDestructuringForOfArrayBindingPattern.ts, 83, 19))
|
||||
>robotA : Symbol(robotA, Decl(sourceMapValidationDestructuringForOfArrayBindingPattern.ts, 6, 3))
|
||||
>robotB : Symbol(robotB, Decl(sourceMapValidationDestructuringForOfArrayBindingPattern.ts, 7, 3))
|
||||
|
||||
console.log(numberA3);
|
||||
>console.log : Symbol(log, Decl(sourceMapValidationDestructuringForOfArrayBindingPattern.ts, 0, 22))
|
||||
>console : Symbol(console, Decl(sourceMapValidationDestructuringForOfArrayBindingPattern.ts, 0, 11))
|
||||
>log : Symbol(log, Decl(sourceMapValidationDestructuringForOfArrayBindingPattern.ts, 0, 22))
|
||||
>numberA3 : Symbol(numberA3, Decl(sourceMapValidationDestructuringForOfArrayBindingPattern.ts, 83, 10))
|
||||
}
|
||||
for (let [...multiRobotAInfo] of multiRobots) {
|
||||
>multiRobotAInfo : Symbol(multiRobotAInfo, Decl(sourceMapValidationDestructuringForOfArrayBindingPattern.ts, 86, 10))
|
||||
>multiRobots : Symbol(multiRobots, Decl(sourceMapValidationDestructuringForOfArrayBindingPattern.ts, 15, 3))
|
||||
|
||||
console.log(multiRobotAInfo);
|
||||
>console.log : Symbol(log, Decl(sourceMapValidationDestructuringForOfArrayBindingPattern.ts, 0, 22))
|
||||
>console : Symbol(console, Decl(sourceMapValidationDestructuringForOfArrayBindingPattern.ts, 0, 11))
|
||||
>log : Symbol(log, Decl(sourceMapValidationDestructuringForOfArrayBindingPattern.ts, 0, 22))
|
||||
>multiRobotAInfo : Symbol(multiRobotAInfo, Decl(sourceMapValidationDestructuringForOfArrayBindingPattern.ts, 86, 10))
|
||||
}
|
||||
for (let [...multiRobotAInfo] of getMultiRobots()) {
|
||||
>multiRobotAInfo : Symbol(multiRobotAInfo, Decl(sourceMapValidationDestructuringForOfArrayBindingPattern.ts, 89, 10))
|
||||
>getMultiRobots : Symbol(getMultiRobots, Decl(sourceMapValidationDestructuringForOfArrayBindingPattern.ts, 15, 45))
|
||||
|
||||
console.log(multiRobotAInfo);
|
||||
>console.log : Symbol(log, Decl(sourceMapValidationDestructuringForOfArrayBindingPattern.ts, 0, 22))
|
||||
>console : Symbol(console, Decl(sourceMapValidationDestructuringForOfArrayBindingPattern.ts, 0, 11))
|
||||
>log : Symbol(log, Decl(sourceMapValidationDestructuringForOfArrayBindingPattern.ts, 0, 22))
|
||||
>multiRobotAInfo : Symbol(multiRobotAInfo, Decl(sourceMapValidationDestructuringForOfArrayBindingPattern.ts, 89, 10))
|
||||
}
|
||||
for (let [...multiRobotAInfo] of [multiRobotA, multiRobotB]) {
|
||||
>multiRobotAInfo : Symbol(multiRobotAInfo, Decl(sourceMapValidationDestructuringForOfArrayBindingPattern.ts, 92, 10))
|
||||
>multiRobotA : Symbol(multiRobotA, Decl(sourceMapValidationDestructuringForOfArrayBindingPattern.ts, 13, 3))
|
||||
>multiRobotB : Symbol(multiRobotB, Decl(sourceMapValidationDestructuringForOfArrayBindingPattern.ts, 14, 3))
|
||||
|
||||
console.log(multiRobotAInfo);
|
||||
>console.log : Symbol(log, Decl(sourceMapValidationDestructuringForOfArrayBindingPattern.ts, 0, 22))
|
||||
>console : Symbol(console, Decl(sourceMapValidationDestructuringForOfArrayBindingPattern.ts, 0, 11))
|
||||
>log : Symbol(log, Decl(sourceMapValidationDestructuringForOfArrayBindingPattern.ts, 0, 22))
|
||||
>multiRobotAInfo : Symbol(multiRobotAInfo, Decl(sourceMapValidationDestructuringForOfArrayBindingPattern.ts, 92, 10))
|
||||
}
|
||||
@ -0,0 +1,389 @@
|
||||
=== tests/cases/compiler/sourceMapValidationDestructuringForOfArrayBindingPattern.ts ===
|
||||
declare var console: {
|
||||
>console : { log(msg: any): void; }
|
||||
|
||||
log(msg: any): void;
|
||||
>log : (msg: any) => void
|
||||
>msg : any
|
||||
}
|
||||
type Robot = [number, string, string];
|
||||
>Robot : [number, string, string]
|
||||
|
||||
type MultiSkilledRobot = [string, [string, string]];
|
||||
>MultiSkilledRobot : [string, [string, string]]
|
||||
|
||||
let robotA: Robot = [1, "mower", "mowing"];
|
||||
>robotA : [number, string, string]
|
||||
>Robot : [number, string, string]
|
||||
>[1, "mower", "mowing"] : [number, string, string]
|
||||
>1 : number
|
||||
>"mower" : string
|
||||
>"mowing" : string
|
||||
|
||||
let robotB: Robot = [2, "trimmer", "trimming"];
|
||||
>robotB : [number, string, string]
|
||||
>Robot : [number, string, string]
|
||||
>[2, "trimmer", "trimming"] : [number, string, string]
|
||||
>2 : number
|
||||
>"trimmer" : string
|
||||
>"trimming" : string
|
||||
|
||||
let robots = [robotA, robotB];
|
||||
>robots : [number, string, string][]
|
||||
>[robotA, robotB] : [number, string, string][]
|
||||
>robotA : [number, string, string]
|
||||
>robotB : [number, string, string]
|
||||
|
||||
function getRobots() {
|
||||
>getRobots : () => [number, string, string][]
|
||||
|
||||
return robots;
|
||||
>robots : [number, string, string][]
|
||||
}
|
||||
|
||||
let multiRobotA: MultiSkilledRobot = ["mower", ["mowing", ""]];
|
||||
>multiRobotA : [string, [string, string]]
|
||||
>MultiSkilledRobot : [string, [string, string]]
|
||||
>["mower", ["mowing", ""]] : [string, [string, string]]
|
||||
>"mower" : string
|
||||
>["mowing", ""] : [string, string]
|
||||
>"mowing" : string
|
||||
>"" : string
|
||||
|
||||
let multiRobotB: MultiSkilledRobot = ["trimmer", ["trimming", "edging"]];
|
||||
>multiRobotB : [string, [string, string]]
|
||||
>MultiSkilledRobot : [string, [string, string]]
|
||||
>["trimmer", ["trimming", "edging"]] : [string, [string, string]]
|
||||
>"trimmer" : string
|
||||
>["trimming", "edging"] : [string, string]
|
||||
>"trimming" : string
|
||||
>"edging" : string
|
||||
|
||||
let multiRobots = [multiRobotA, multiRobotB];
|
||||
>multiRobots : [string, [string, string]][]
|
||||
>[multiRobotA, multiRobotB] : [string, [string, string]][]
|
||||
>multiRobotA : [string, [string, string]]
|
||||
>multiRobotB : [string, [string, string]]
|
||||
|
||||
function getMultiRobots() {
|
||||
>getMultiRobots : () => [string, [string, string]][]
|
||||
|
||||
return multiRobots;
|
||||
>multiRobots : [string, [string, string]][]
|
||||
}
|
||||
|
||||
for (let [, nameA] of robots) {
|
||||
> : undefined
|
||||
>nameA : string
|
||||
>robots : [number, string, string][]
|
||||
|
||||
console.log(nameA);
|
||||
>console.log(nameA) : void
|
||||
>console.log : (msg: any) => void
|
||||
>console : { log(msg: any): void; }
|
||||
>log : (msg: any) => void
|
||||
>nameA : string
|
||||
}
|
||||
for (let [, nameA] of getRobots()) {
|
||||
> : undefined
|
||||
>nameA : string
|
||||
>getRobots() : [number, string, string][]
|
||||
>getRobots : () => [number, string, string][]
|
||||
|
||||
console.log(nameA);
|
||||
>console.log(nameA) : void
|
||||
>console.log : (msg: any) => void
|
||||
>console : { log(msg: any): void; }
|
||||
>log : (msg: any) => void
|
||||
>nameA : string
|
||||
}
|
||||
for (let [, nameA] of [robotA, robotB]) {
|
||||
> : undefined
|
||||
>nameA : string
|
||||
>[robotA, robotB] : [number, string, string][]
|
||||
>robotA : [number, string, string]
|
||||
>robotB : [number, string, string]
|
||||
|
||||
console.log(nameA);
|
||||
>console.log(nameA) : void
|
||||
>console.log : (msg: any) => void
|
||||
>console : { log(msg: any): void; }
|
||||
>log : (msg: any) => void
|
||||
>nameA : string
|
||||
}
|
||||
for (let [, [primarySkillA, secondarySkillA]] of multiRobots) {
|
||||
> : undefined
|
||||
>primarySkillA : string
|
||||
>secondarySkillA : string
|
||||
>multiRobots : [string, [string, string]][]
|
||||
|
||||
console.log(primarySkillA);
|
||||
>console.log(primarySkillA) : void
|
||||
>console.log : (msg: any) => void
|
||||
>console : { log(msg: any): void; }
|
||||
>log : (msg: any) => void
|
||||
>primarySkillA : string
|
||||
}
|
||||
for (let [, [primarySkillA, secondarySkillA]] of getMultiRobots()) {
|
||||
> : undefined
|
||||
>primarySkillA : string
|
||||
>secondarySkillA : string
|
||||
>getMultiRobots() : [string, [string, string]][]
|
||||
>getMultiRobots : () => [string, [string, string]][]
|
||||
|
||||
console.log(primarySkillA);
|
||||
>console.log(primarySkillA) : void
|
||||
>console.log : (msg: any) => void
|
||||
>console : { log(msg: any): void; }
|
||||
>log : (msg: any) => void
|
||||
>primarySkillA : string
|
||||
}
|
||||
for (let [, [primarySkillA, secondarySkillA]] of [multiRobotA, multiRobotB]) {
|
||||
> : undefined
|
||||
>primarySkillA : string
|
||||
>secondarySkillA : string
|
||||
>[multiRobotA, multiRobotB] : [string, [string, string]][]
|
||||
>multiRobotA : [string, [string, string]]
|
||||
>multiRobotB : [string, [string, string]]
|
||||
|
||||
console.log(primarySkillA);
|
||||
>console.log(primarySkillA) : void
|
||||
>console.log : (msg: any) => void
|
||||
>console : { log(msg: any): void; }
|
||||
>log : (msg: any) => void
|
||||
>primarySkillA : string
|
||||
}
|
||||
|
||||
for (let [numberB] of robots) {
|
||||
>numberB : number
|
||||
>robots : [number, string, string][]
|
||||
|
||||
console.log(numberB);
|
||||
>console.log(numberB) : void
|
||||
>console.log : (msg: any) => void
|
||||
>console : { log(msg: any): void; }
|
||||
>log : (msg: any) => void
|
||||
>numberB : number
|
||||
}
|
||||
for (let [numberB] of getRobots()) {
|
||||
>numberB : number
|
||||
>getRobots() : [number, string, string][]
|
||||
>getRobots : () => [number, string, string][]
|
||||
|
||||
console.log(numberB);
|
||||
>console.log(numberB) : void
|
||||
>console.log : (msg: any) => void
|
||||
>console : { log(msg: any): void; }
|
||||
>log : (msg: any) => void
|
||||
>numberB : number
|
||||
}
|
||||
for (let [numberB] of [robotA, robotB]) {
|
||||
>numberB : number
|
||||
>[robotA, robotB] : [number, string, string][]
|
||||
>robotA : [number, string, string]
|
||||
>robotB : [number, string, string]
|
||||
|
||||
console.log(numberB);
|
||||
>console.log(numberB) : void
|
||||
>console.log : (msg: any) => void
|
||||
>console : { log(msg: any): void; }
|
||||
>log : (msg: any) => void
|
||||
>numberB : number
|
||||
}
|
||||
for (let [nameB] of multiRobots) {
|
||||
>nameB : string
|
||||
>multiRobots : [string, [string, string]][]
|
||||
|
||||
console.log(nameB);
|
||||
>console.log(nameB) : void
|
||||
>console.log : (msg: any) => void
|
||||
>console : { log(msg: any): void; }
|
||||
>log : (msg: any) => void
|
||||
>nameB : string
|
||||
}
|
||||
for (let [nameB] of getMultiRobots()) {
|
||||
>nameB : string
|
||||
>getMultiRobots() : [string, [string, string]][]
|
||||
>getMultiRobots : () => [string, [string, string]][]
|
||||
|
||||
console.log(nameB);
|
||||
>console.log(nameB) : void
|
||||
>console.log : (msg: any) => void
|
||||
>console : { log(msg: any): void; }
|
||||
>log : (msg: any) => void
|
||||
>nameB : string
|
||||
}
|
||||
for (let [nameB] of [multiRobotA, multiRobotB]) {
|
||||
>nameB : string
|
||||
>[multiRobotA, multiRobotB] : [string, [string, string]][]
|
||||
>multiRobotA : [string, [string, string]]
|
||||
>multiRobotB : [string, [string, string]]
|
||||
|
||||
console.log(nameB);
|
||||
>console.log(nameB) : void
|
||||
>console.log : (msg: any) => void
|
||||
>console : { log(msg: any): void; }
|
||||
>log : (msg: any) => void
|
||||
>nameB : string
|
||||
}
|
||||
|
||||
for (let [numberA2, nameA2, skillA2] of robots) {
|
||||
>numberA2 : number
|
||||
>nameA2 : string
|
||||
>skillA2 : string
|
||||
>robots : [number, string, string][]
|
||||
|
||||
console.log(nameA2);
|
||||
>console.log(nameA2) : void
|
||||
>console.log : (msg: any) => void
|
||||
>console : { log(msg: any): void; }
|
||||
>log : (msg: any) => void
|
||||
>nameA2 : string
|
||||
}
|
||||
for (let [numberA2, nameA2, skillA2] of getRobots()) {
|
||||
>numberA2 : number
|
||||
>nameA2 : string
|
||||
>skillA2 : string
|
||||
>getRobots() : [number, string, string][]
|
||||
>getRobots : () => [number, string, string][]
|
||||
|
||||
console.log(nameA2);
|
||||
>console.log(nameA2) : void
|
||||
>console.log : (msg: any) => void
|
||||
>console : { log(msg: any): void; }
|
||||
>log : (msg: any) => void
|
||||
>nameA2 : string
|
||||
}
|
||||
for (let [numberA2, nameA2, skillA2] of [robotA, robotB]) {
|
||||
>numberA2 : number
|
||||
>nameA2 : string
|
||||
>skillA2 : string
|
||||
>[robotA, robotB] : [number, string, string][]
|
||||
>robotA : [number, string, string]
|
||||
>robotB : [number, string, string]
|
||||
|
||||
console.log(nameA2);
|
||||
>console.log(nameA2) : void
|
||||
>console.log : (msg: any) => void
|
||||
>console : { log(msg: any): void; }
|
||||
>log : (msg: any) => void
|
||||
>nameA2 : string
|
||||
}
|
||||
for (let [nameMA, [primarySkillA, secondarySkillA]] of multiRobots) {
|
||||
>nameMA : string
|
||||
>primarySkillA : string
|
||||
>secondarySkillA : string
|
||||
>multiRobots : [string, [string, string]][]
|
||||
|
||||
console.log(nameMA);
|
||||
>console.log(nameMA) : void
|
||||
>console.log : (msg: any) => void
|
||||
>console : { log(msg: any): void; }
|
||||
>log : (msg: any) => void
|
||||
>nameMA : string
|
||||
}
|
||||
for (let [nameMA, [primarySkillA, secondarySkillA]] of getMultiRobots()) {
|
||||
>nameMA : string
|
||||
>primarySkillA : string
|
||||
>secondarySkillA : string
|
||||
>getMultiRobots() : [string, [string, string]][]
|
||||
>getMultiRobots : () => [string, [string, string]][]
|
||||
|
||||
console.log(nameMA);
|
||||
>console.log(nameMA) : void
|
||||
>console.log : (msg: any) => void
|
||||
>console : { log(msg: any): void; }
|
||||
>log : (msg: any) => void
|
||||
>nameMA : string
|
||||
}
|
||||
for (let [nameMA, [primarySkillA, secondarySkillA]] of [multiRobotA, multiRobotB]) {
|
||||
>nameMA : string
|
||||
>primarySkillA : string
|
||||
>secondarySkillA : string
|
||||
>[multiRobotA, multiRobotB] : [string, [string, string]][]
|
||||
>multiRobotA : [string, [string, string]]
|
||||
>multiRobotB : [string, [string, string]]
|
||||
|
||||
console.log(nameMA);
|
||||
>console.log(nameMA) : void
|
||||
>console.log : (msg: any) => void
|
||||
>console : { log(msg: any): void; }
|
||||
>log : (msg: any) => void
|
||||
>nameMA : string
|
||||
}
|
||||
|
||||
for (let [numberA3, ...robotAInfo] of robots) {
|
||||
>numberA3 : number
|
||||
>robotAInfo : (number | string)[]
|
||||
>robots : [number, string, string][]
|
||||
|
||||
console.log(numberA3);
|
||||
>console.log(numberA3) : void
|
||||
>console.log : (msg: any) => void
|
||||
>console : { log(msg: any): void; }
|
||||
>log : (msg: any) => void
|
||||
>numberA3 : number
|
||||
}
|
||||
for (let [numberA3, ...robotAInfo] of getRobots()) {
|
||||
>numberA3 : number
|
||||
>robotAInfo : (number | string)[]
|
||||
>getRobots() : [number, string, string][]
|
||||
>getRobots : () => [number, string, string][]
|
||||
|
||||
console.log(numberA3);
|
||||
>console.log(numberA3) : void
|
||||
>console.log : (msg: any) => void
|
||||
>console : { log(msg: any): void; }
|
||||
>log : (msg: any) => void
|
||||
>numberA3 : number
|
||||
}
|
||||
for (let [numberA3, ...robotAInfo] of [robotA, robotB]) {
|
||||
>numberA3 : number
|
||||
>robotAInfo : (number | string)[]
|
||||
>[robotA, robotB] : [number, string, string][]
|
||||
>robotA : [number, string, string]
|
||||
>robotB : [number, string, string]
|
||||
|
||||
console.log(numberA3);
|
||||
>console.log(numberA3) : void
|
||||
>console.log : (msg: any) => void
|
||||
>console : { log(msg: any): void; }
|
||||
>log : (msg: any) => void
|
||||
>numberA3 : number
|
||||
}
|
||||
for (let [...multiRobotAInfo] of multiRobots) {
|
||||
>multiRobotAInfo : (string | [string, string])[]
|
||||
>multiRobots : [string, [string, string]][]
|
||||
|
||||
console.log(multiRobotAInfo);
|
||||
>console.log(multiRobotAInfo) : void
|
||||
>console.log : (msg: any) => void
|
||||
>console : { log(msg: any): void; }
|
||||
>log : (msg: any) => void
|
||||
>multiRobotAInfo : (string | [string, string])[]
|
||||
}
|
||||
for (let [...multiRobotAInfo] of getMultiRobots()) {
|
||||
>multiRobotAInfo : (string | [string, string])[]
|
||||
>getMultiRobots() : [string, [string, string]][]
|
||||
>getMultiRobots : () => [string, [string, string]][]
|
||||
|
||||
console.log(multiRobotAInfo);
|
||||
>console.log(multiRobotAInfo) : void
|
||||
>console.log : (msg: any) => void
|
||||
>console : { log(msg: any): void; }
|
||||
>log : (msg: any) => void
|
||||
>multiRobotAInfo : (string | [string, string])[]
|
||||
}
|
||||
for (let [...multiRobotAInfo] of [multiRobotA, multiRobotB]) {
|
||||
>multiRobotAInfo : (string | [string, string])[]
|
||||
>[multiRobotA, multiRobotB] : [string, [string, string]][]
|
||||
>multiRobotA : [string, [string, string]]
|
||||
>multiRobotB : [string, [string, string]]
|
||||
|
||||
console.log(multiRobotAInfo);
|
||||
>console.log(multiRobotAInfo) : void
|
||||
>console.log : (msg: any) => void
|
||||
>console : { log(msg: any): void; }
|
||||
>log : (msg: any) => void
|
||||
>multiRobotAInfo : (string | [string, string])[]
|
||||
}
|
||||
@ -0,0 +1,96 @@
|
||||
// @sourcemap: true
|
||||
declare var console: {
|
||||
log(msg: any): void;
|
||||
}
|
||||
type Robot = [number, string, string];
|
||||
type MultiSkilledRobot = [string, [string, string]];
|
||||
|
||||
let robotA: Robot = [1, "mower", "mowing"];
|
||||
let robotB: Robot = [2, "trimmer", "trimming"];
|
||||
let robots = [robotA, robotB];
|
||||
function getRobots() {
|
||||
return robots;
|
||||
}
|
||||
|
||||
let multiRobotA: MultiSkilledRobot = ["mower", ["mowing", ""]];
|
||||
let multiRobotB: MultiSkilledRobot = ["trimmer", ["trimming", "edging"]];
|
||||
let multiRobots = [multiRobotA, multiRobotB];
|
||||
function getMultiRobots() {
|
||||
return multiRobots;
|
||||
}
|
||||
|
||||
for (let [, nameA] of robots) {
|
||||
console.log(nameA);
|
||||
}
|
||||
for (let [, nameA] of getRobots()) {
|
||||
console.log(nameA);
|
||||
}
|
||||
for (let [, nameA] of [robotA, robotB]) {
|
||||
console.log(nameA);
|
||||
}
|
||||
for (let [, [primarySkillA, secondarySkillA]] of multiRobots) {
|
||||
console.log(primarySkillA);
|
||||
}
|
||||
for (let [, [primarySkillA, secondarySkillA]] of getMultiRobots()) {
|
||||
console.log(primarySkillA);
|
||||
}
|
||||
for (let [, [primarySkillA, secondarySkillA]] of [multiRobotA, multiRobotB]) {
|
||||
console.log(primarySkillA);
|
||||
}
|
||||
|
||||
for (let [numberB] of robots) {
|
||||
console.log(numberB);
|
||||
}
|
||||
for (let [numberB] of getRobots()) {
|
||||
console.log(numberB);
|
||||
}
|
||||
for (let [numberB] of [robotA, robotB]) {
|
||||
console.log(numberB);
|
||||
}
|
||||
for (let [nameB] of multiRobots) {
|
||||
console.log(nameB);
|
||||
}
|
||||
for (let [nameB] of getMultiRobots()) {
|
||||
console.log(nameB);
|
||||
}
|
||||
for (let [nameB] of [multiRobotA, multiRobotB]) {
|
||||
console.log(nameB);
|
||||
}
|
||||
|
||||
for (let [numberA2, nameA2, skillA2] of robots) {
|
||||
console.log(nameA2);
|
||||
}
|
||||
for (let [numberA2, nameA2, skillA2] of getRobots()) {
|
||||
console.log(nameA2);
|
||||
}
|
||||
for (let [numberA2, nameA2, skillA2] of [robotA, robotB]) {
|
||||
console.log(nameA2);
|
||||
}
|
||||
for (let [nameMA, [primarySkillA, secondarySkillA]] of multiRobots) {
|
||||
console.log(nameMA);
|
||||
}
|
||||
for (let [nameMA, [primarySkillA, secondarySkillA]] of getMultiRobots()) {
|
||||
console.log(nameMA);
|
||||
}
|
||||
for (let [nameMA, [primarySkillA, secondarySkillA]] of [multiRobotA, multiRobotB]) {
|
||||
console.log(nameMA);
|
||||
}
|
||||
|
||||
for (let [numberA3, ...robotAInfo] of robots) {
|
||||
console.log(numberA3);
|
||||
}
|
||||
for (let [numberA3, ...robotAInfo] of getRobots()) {
|
||||
console.log(numberA3);
|
||||
}
|
||||
for (let [numberA3, ...robotAInfo] of [robotA, robotB]) {
|
||||
console.log(numberA3);
|
||||
}
|
||||
for (let [...multiRobotAInfo] of multiRobots) {
|
||||
console.log(multiRobotAInfo);
|
||||
}
|
||||
for (let [...multiRobotAInfo] of getMultiRobots()) {
|
||||
console.log(multiRobotAInfo);
|
||||
}
|
||||
for (let [...multiRobotAInfo] of [multiRobotA, multiRobotB]) {
|
||||
console.log(multiRobotAInfo);
|
||||
}
|
||||
Loading…
x
Reference in New Issue
Block a user