mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-05-14 09:49:40 -05:00
Test cases for destructuring with default values in "for of"
This commit is contained in:
@@ -0,0 +1,204 @@
|
||||
//// [sourceMapValidationDestructuringForOfArrayBindingPatternDefaultValues.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 = "noName"] of robots) {
|
||||
console.log(nameA);
|
||||
}
|
||||
for (let [, nameA = "noName"] of getRobots()) {
|
||||
console.log(nameA);
|
||||
}
|
||||
for (let [, nameA = "noName"] of [robotA, robotB]) {
|
||||
console.log(nameA);
|
||||
}
|
||||
for (let [, [
|
||||
primarySkillA = "primary",
|
||||
secondarySkillA = "secondary"
|
||||
] = ["skill1", "skill2"]] of multiRobots) {
|
||||
console.log(primarySkillA);
|
||||
}
|
||||
for (let [, [
|
||||
primarySkillA = "primary",
|
||||
secondarySkillA = "secondary"
|
||||
] = ["skill1", "skill2"]] of getMultiRobots()) {
|
||||
console.log(primarySkillA);
|
||||
}
|
||||
for (let [, [
|
||||
primarySkillA = "primary",
|
||||
secondarySkillA = "secondary"
|
||||
] = ["skill1", "skill2"]] of [multiRobotA, multiRobotB]) {
|
||||
console.log(primarySkillA);
|
||||
}
|
||||
|
||||
for (let [numberB = -1] of robots) {
|
||||
console.log(numberB);
|
||||
}
|
||||
for (let [numberB = -1] of getRobots()) {
|
||||
console.log(numberB);
|
||||
}
|
||||
for (let [numberB = -1] of [robotA, robotB]) {
|
||||
console.log(numberB);
|
||||
}
|
||||
for (let [nameB = "noName"] of multiRobots) {
|
||||
console.log(nameB);
|
||||
}
|
||||
for (let [nameB = "noName"] of getMultiRobots()) {
|
||||
console.log(nameB);
|
||||
}
|
||||
for (let [nameB = "noName"] of [multiRobotA, multiRobotB]) {
|
||||
console.log(nameB);
|
||||
}
|
||||
|
||||
for (let [numberA2 = -1, nameA2 = "noName", skillA2 = "skill"] of robots) {
|
||||
console.log(nameA2);
|
||||
}
|
||||
for (let [numberA2 = -1, nameA2 = "noName", skillA2 = "skill"] of getRobots()) {
|
||||
console.log(nameA2);
|
||||
}
|
||||
for (let [numberA2 = -1, nameA2 = "noName", skillA2 = "skill"] of [robotA, robotB]) {
|
||||
console.log(nameA2);
|
||||
}
|
||||
for (let [nameMA = "noName", [
|
||||
primarySkillA = "primary",
|
||||
secondarySkillA = "secondary"
|
||||
] = ["skill1", "skill2"]] of multiRobots) {
|
||||
console.log(nameMA);
|
||||
}
|
||||
for (let [nameMA = "noName", [
|
||||
primarySkillA = "primary",
|
||||
secondarySkillA = "secondary"
|
||||
] = ["skill1", "skill2"]] of getMultiRobots()) {
|
||||
console.log(nameMA);
|
||||
}
|
||||
for (let [nameMA = "noName", [
|
||||
primarySkillA = "primary",
|
||||
secondarySkillA = "secondary"
|
||||
] = ["skill1", "skill2"]] of [multiRobotA, multiRobotB]) {
|
||||
console.log(nameMA);
|
||||
}
|
||||
|
||||
for (let [numberA3 = -1, ...robotAInfo] of robots) {
|
||||
console.log(numberA3);
|
||||
}
|
||||
for (let [numberA3 = -1, ...robotAInfo] of getRobots()) {
|
||||
console.log(numberA3);
|
||||
}
|
||||
for (let [numberA3 = -1, ...robotAInfo] of [robotA, robotB]) {
|
||||
console.log(numberA3);
|
||||
}
|
||||
|
||||
//// [sourceMapValidationDestructuringForOfArrayBindingPatternDefaultValues.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], _b = _a[1], nameA = _b === void 0 ? "noName" : _b;
|
||||
console.log(nameA);
|
||||
}
|
||||
for (var _c = 0, _d = getRobots(); _c < _d.length; _c++) {
|
||||
var _e = _d[_c], _f = _e[1], nameA = _f === void 0 ? "noName" : _f;
|
||||
console.log(nameA);
|
||||
}
|
||||
for (var _g = 0, _h = [robotA, robotB]; _g < _h.length; _g++) {
|
||||
var _j = _h[_g], _k = _j[1], nameA = _k === void 0 ? "noName" : _k;
|
||||
console.log(nameA);
|
||||
}
|
||||
for (var _l = 0, multiRobots_1 = multiRobots; _l < multiRobots_1.length; _l++) {
|
||||
var _m = multiRobots_1[_l], _o = _m[1], _p = _o === void 0 ? ["skill1", "skill2"] : _o, _q = _p[0], primarySkillA = _q === void 0 ? "primary" : _q, _r = _p[1], secondarySkillA = _r === void 0 ? "secondary" : _r;
|
||||
console.log(primarySkillA);
|
||||
}
|
||||
for (var _s = 0, _t = getMultiRobots(); _s < _t.length; _s++) {
|
||||
var _u = _t[_s], _v = _u[1], _w = _v === void 0 ? ["skill1", "skill2"] : _v, _x = _w[0], primarySkillA = _x === void 0 ? "primary" : _x, _y = _w[1], secondarySkillA = _y === void 0 ? "secondary" : _y;
|
||||
console.log(primarySkillA);
|
||||
}
|
||||
for (var _z = 0, _0 = [multiRobotA, multiRobotB]; _z < _0.length; _z++) {
|
||||
var _1 = _0[_z], _2 = _1[1], _3 = _2 === void 0 ? ["skill1", "skill2"] : _2, _4 = _3[0], primarySkillA = _4 === void 0 ? "primary" : _4, _5 = _3[1], secondarySkillA = _5 === void 0 ? "secondary" : _5;
|
||||
console.log(primarySkillA);
|
||||
}
|
||||
for (var _6 = 0, robots_2 = robots; _6 < robots_2.length; _6++) {
|
||||
var _7 = robots_2[_6][0], numberB = _7 === void 0 ? -1 : _7;
|
||||
console.log(numberB);
|
||||
}
|
||||
for (var _8 = 0, _9 = getRobots(); _8 < _9.length; _8++) {
|
||||
var _10 = _9[_8][0], numberB = _10 === void 0 ? -1 : _10;
|
||||
console.log(numberB);
|
||||
}
|
||||
for (var _11 = 0, _12 = [robotA, robotB]; _11 < _12.length; _11++) {
|
||||
var _13 = _12[_11][0], numberB = _13 === void 0 ? -1 : _13;
|
||||
console.log(numberB);
|
||||
}
|
||||
for (var _14 = 0, multiRobots_2 = multiRobots; _14 < multiRobots_2.length; _14++) {
|
||||
var _15 = multiRobots_2[_14][0], nameB = _15 === void 0 ? "noName" : _15;
|
||||
console.log(nameB);
|
||||
}
|
||||
for (var _16 = 0, _17 = getMultiRobots(); _16 < _17.length; _16++) {
|
||||
var _18 = _17[_16][0], nameB = _18 === void 0 ? "noName" : _18;
|
||||
console.log(nameB);
|
||||
}
|
||||
for (var _19 = 0, _20 = [multiRobotA, multiRobotB]; _19 < _20.length; _19++) {
|
||||
var _21 = _20[_19][0], nameB = _21 === void 0 ? "noName" : _21;
|
||||
console.log(nameB);
|
||||
}
|
||||
for (var _22 = 0, robots_3 = robots; _22 < robots_3.length; _22++) {
|
||||
var _23 = robots_3[_22], _24 = _23[0], numberA2 = _24 === void 0 ? -1 : _24, _25 = _23[1], nameA2 = _25 === void 0 ? "noName" : _25, _26 = _23[2], skillA2 = _26 === void 0 ? "skill" : _26;
|
||||
console.log(nameA2);
|
||||
}
|
||||
for (var _27 = 0, _28 = getRobots(); _27 < _28.length; _27++) {
|
||||
var _29 = _28[_27], _30 = _29[0], numberA2 = _30 === void 0 ? -1 : _30, _31 = _29[1], nameA2 = _31 === void 0 ? "noName" : _31, _32 = _29[2], skillA2 = _32 === void 0 ? "skill" : _32;
|
||||
console.log(nameA2);
|
||||
}
|
||||
for (var _33 = 0, _34 = [robotA, robotB]; _33 < _34.length; _33++) {
|
||||
var _35 = _34[_33], _36 = _35[0], numberA2 = _36 === void 0 ? -1 : _36, _37 = _35[1], nameA2 = _37 === void 0 ? "noName" : _37, _38 = _35[2], skillA2 = _38 === void 0 ? "skill" : _38;
|
||||
console.log(nameA2);
|
||||
}
|
||||
for (var _39 = 0, multiRobots_3 = multiRobots; _39 < multiRobots_3.length; _39++) {
|
||||
var _40 = multiRobots_3[_39], _41 = _40[0], nameMA = _41 === void 0 ? "noName" : _41, _42 = _40[1], _43 = _42 === void 0 ? ["skill1", "skill2"] : _42, _44 = _43[0], primarySkillA = _44 === void 0 ? "primary" : _44, _45 = _43[1], secondarySkillA = _45 === void 0 ? "secondary" : _45;
|
||||
console.log(nameMA);
|
||||
}
|
||||
for (var _46 = 0, _47 = getMultiRobots(); _46 < _47.length; _46++) {
|
||||
var _48 = _47[_46], _49 = _48[0], nameMA = _49 === void 0 ? "noName" : _49, _50 = _48[1], _51 = _50 === void 0 ? ["skill1", "skill2"] : _50, _52 = _51[0], primarySkillA = _52 === void 0 ? "primary" : _52, _53 = _51[1], secondarySkillA = _53 === void 0 ? "secondary" : _53;
|
||||
console.log(nameMA);
|
||||
}
|
||||
for (var _54 = 0, _55 = [multiRobotA, multiRobotB]; _54 < _55.length; _54++) {
|
||||
var _56 = _55[_54], _57 = _56[0], nameMA = _57 === void 0 ? "noName" : _57, _58 = _56[1], _59 = _58 === void 0 ? ["skill1", "skill2"] : _58, _60 = _59[0], primarySkillA = _60 === void 0 ? "primary" : _60, _61 = _59[1], secondarySkillA = _61 === void 0 ? "secondary" : _61;
|
||||
console.log(nameMA);
|
||||
}
|
||||
for (var _62 = 0, robots_4 = robots; _62 < robots_4.length; _62++) {
|
||||
var _63 = robots_4[_62], _64 = _63[0], numberA3 = _64 === void 0 ? -1 : _64, robotAInfo = _63.slice(1);
|
||||
console.log(numberA3);
|
||||
}
|
||||
for (var _65 = 0, _66 = getRobots(); _65 < _66.length; _65++) {
|
||||
var _67 = _66[_65], _68 = _67[0], numberA3 = _68 === void 0 ? -1 : _68, robotAInfo = _67.slice(1);
|
||||
console.log(numberA3);
|
||||
}
|
||||
for (var _69 = 0, _70 = [robotA, robotB]; _69 < _70.length; _69++) {
|
||||
var _71 = _70[_69], _72 = _71[0], numberA3 = _72 === void 0 ? -1 : _72, robotAInfo = _71.slice(1);
|
||||
console.log(numberA3);
|
||||
}
|
||||
//# sourceMappingURL=sourceMapValidationDestructuringForOfArrayBindingPatternDefaultValues.js.map
|
||||
@@ -0,0 +1,2 @@
|
||||
//// [sourceMapValidationDestructuringForOfArrayBindingPatternDefaultValues.js.map]
|
||||
{"version":3,"file":"sourceMapValidationDestructuringForOfArrayBindingPatternDefaultValues.js","sourceRoot":"","sources":["sourceMapValidationDestructuringForOfArrayBindingPatternDefaultValues.ts"],"names":[],"mappings":"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"}
|
||||
File diff suppressed because it is too large
Load Diff
@@ -0,0 +1,325 @@
|
||||
=== tests/cases/compiler/sourceMapValidationDestructuringForOfArrayBindingPatternDefaultValues.ts ===
|
||||
declare var console: {
|
||||
>console : Symbol(console, Decl(sourceMapValidationDestructuringForOfArrayBindingPatternDefaultValues.ts, 0, 11))
|
||||
|
||||
log(msg: any): void;
|
||||
>log : Symbol(log, Decl(sourceMapValidationDestructuringForOfArrayBindingPatternDefaultValues.ts, 0, 22))
|
||||
>msg : Symbol(msg, Decl(sourceMapValidationDestructuringForOfArrayBindingPatternDefaultValues.ts, 1, 8))
|
||||
}
|
||||
type Robot = [number, string, string];
|
||||
>Robot : Symbol(Robot, Decl(sourceMapValidationDestructuringForOfArrayBindingPatternDefaultValues.ts, 2, 1))
|
||||
|
||||
type MultiSkilledRobot = [string, [string, string]];
|
||||
>MultiSkilledRobot : Symbol(MultiSkilledRobot, Decl(sourceMapValidationDestructuringForOfArrayBindingPatternDefaultValues.ts, 3, 38))
|
||||
|
||||
let robotA: Robot = [1, "mower", "mowing"];
|
||||
>robotA : Symbol(robotA, Decl(sourceMapValidationDestructuringForOfArrayBindingPatternDefaultValues.ts, 6, 3))
|
||||
>Robot : Symbol(Robot, Decl(sourceMapValidationDestructuringForOfArrayBindingPatternDefaultValues.ts, 2, 1))
|
||||
|
||||
let robotB: Robot = [2, "trimmer", "trimming"];
|
||||
>robotB : Symbol(robotB, Decl(sourceMapValidationDestructuringForOfArrayBindingPatternDefaultValues.ts, 7, 3))
|
||||
>Robot : Symbol(Robot, Decl(sourceMapValidationDestructuringForOfArrayBindingPatternDefaultValues.ts, 2, 1))
|
||||
|
||||
let robots = [robotA, robotB];
|
||||
>robots : Symbol(robots, Decl(sourceMapValidationDestructuringForOfArrayBindingPatternDefaultValues.ts, 8, 3))
|
||||
>robotA : Symbol(robotA, Decl(sourceMapValidationDestructuringForOfArrayBindingPatternDefaultValues.ts, 6, 3))
|
||||
>robotB : Symbol(robotB, Decl(sourceMapValidationDestructuringForOfArrayBindingPatternDefaultValues.ts, 7, 3))
|
||||
|
||||
function getRobots() {
|
||||
>getRobots : Symbol(getRobots, Decl(sourceMapValidationDestructuringForOfArrayBindingPatternDefaultValues.ts, 8, 30))
|
||||
|
||||
return robots;
|
||||
>robots : Symbol(robots, Decl(sourceMapValidationDestructuringForOfArrayBindingPatternDefaultValues.ts, 8, 3))
|
||||
}
|
||||
|
||||
let multiRobotA: MultiSkilledRobot = ["mower", ["mowing", ""]];
|
||||
>multiRobotA : Symbol(multiRobotA, Decl(sourceMapValidationDestructuringForOfArrayBindingPatternDefaultValues.ts, 13, 3))
|
||||
>MultiSkilledRobot : Symbol(MultiSkilledRobot, Decl(sourceMapValidationDestructuringForOfArrayBindingPatternDefaultValues.ts, 3, 38))
|
||||
|
||||
let multiRobotB: MultiSkilledRobot = ["trimmer", ["trimming", "edging"]];
|
||||
>multiRobotB : Symbol(multiRobotB, Decl(sourceMapValidationDestructuringForOfArrayBindingPatternDefaultValues.ts, 14, 3))
|
||||
>MultiSkilledRobot : Symbol(MultiSkilledRobot, Decl(sourceMapValidationDestructuringForOfArrayBindingPatternDefaultValues.ts, 3, 38))
|
||||
|
||||
let multiRobots = [multiRobotA, multiRobotB];
|
||||
>multiRobots : Symbol(multiRobots, Decl(sourceMapValidationDestructuringForOfArrayBindingPatternDefaultValues.ts, 15, 3))
|
||||
>multiRobotA : Symbol(multiRobotA, Decl(sourceMapValidationDestructuringForOfArrayBindingPatternDefaultValues.ts, 13, 3))
|
||||
>multiRobotB : Symbol(multiRobotB, Decl(sourceMapValidationDestructuringForOfArrayBindingPatternDefaultValues.ts, 14, 3))
|
||||
|
||||
function getMultiRobots() {
|
||||
>getMultiRobots : Symbol(getMultiRobots, Decl(sourceMapValidationDestructuringForOfArrayBindingPatternDefaultValues.ts, 15, 45))
|
||||
|
||||
return multiRobots;
|
||||
>multiRobots : Symbol(multiRobots, Decl(sourceMapValidationDestructuringForOfArrayBindingPatternDefaultValues.ts, 15, 3))
|
||||
}
|
||||
|
||||
for (let [, nameA = "noName"] of robots) {
|
||||
>nameA : Symbol(nameA, Decl(sourceMapValidationDestructuringForOfArrayBindingPatternDefaultValues.ts, 20, 11))
|
||||
>robots : Symbol(robots, Decl(sourceMapValidationDestructuringForOfArrayBindingPatternDefaultValues.ts, 8, 3))
|
||||
|
||||
console.log(nameA);
|
||||
>console.log : Symbol(log, Decl(sourceMapValidationDestructuringForOfArrayBindingPatternDefaultValues.ts, 0, 22))
|
||||
>console : Symbol(console, Decl(sourceMapValidationDestructuringForOfArrayBindingPatternDefaultValues.ts, 0, 11))
|
||||
>log : Symbol(log, Decl(sourceMapValidationDestructuringForOfArrayBindingPatternDefaultValues.ts, 0, 22))
|
||||
>nameA : Symbol(nameA, Decl(sourceMapValidationDestructuringForOfArrayBindingPatternDefaultValues.ts, 20, 11))
|
||||
}
|
||||
for (let [, nameA = "noName"] of getRobots()) {
|
||||
>nameA : Symbol(nameA, Decl(sourceMapValidationDestructuringForOfArrayBindingPatternDefaultValues.ts, 23, 11))
|
||||
>getRobots : Symbol(getRobots, Decl(sourceMapValidationDestructuringForOfArrayBindingPatternDefaultValues.ts, 8, 30))
|
||||
|
||||
console.log(nameA);
|
||||
>console.log : Symbol(log, Decl(sourceMapValidationDestructuringForOfArrayBindingPatternDefaultValues.ts, 0, 22))
|
||||
>console : Symbol(console, Decl(sourceMapValidationDestructuringForOfArrayBindingPatternDefaultValues.ts, 0, 11))
|
||||
>log : Symbol(log, Decl(sourceMapValidationDestructuringForOfArrayBindingPatternDefaultValues.ts, 0, 22))
|
||||
>nameA : Symbol(nameA, Decl(sourceMapValidationDestructuringForOfArrayBindingPatternDefaultValues.ts, 23, 11))
|
||||
}
|
||||
for (let [, nameA = "noName"] of [robotA, robotB]) {
|
||||
>nameA : Symbol(nameA, Decl(sourceMapValidationDestructuringForOfArrayBindingPatternDefaultValues.ts, 26, 11))
|
||||
>robotA : Symbol(robotA, Decl(sourceMapValidationDestructuringForOfArrayBindingPatternDefaultValues.ts, 6, 3))
|
||||
>robotB : Symbol(robotB, Decl(sourceMapValidationDestructuringForOfArrayBindingPatternDefaultValues.ts, 7, 3))
|
||||
|
||||
console.log(nameA);
|
||||
>console.log : Symbol(log, Decl(sourceMapValidationDestructuringForOfArrayBindingPatternDefaultValues.ts, 0, 22))
|
||||
>console : Symbol(console, Decl(sourceMapValidationDestructuringForOfArrayBindingPatternDefaultValues.ts, 0, 11))
|
||||
>log : Symbol(log, Decl(sourceMapValidationDestructuringForOfArrayBindingPatternDefaultValues.ts, 0, 22))
|
||||
>nameA : Symbol(nameA, Decl(sourceMapValidationDestructuringForOfArrayBindingPatternDefaultValues.ts, 26, 11))
|
||||
}
|
||||
for (let [, [
|
||||
primarySkillA = "primary",
|
||||
>primarySkillA : Symbol(primarySkillA, Decl(sourceMapValidationDestructuringForOfArrayBindingPatternDefaultValues.ts, 29, 13))
|
||||
|
||||
secondarySkillA = "secondary"
|
||||
>secondarySkillA : Symbol(secondarySkillA, Decl(sourceMapValidationDestructuringForOfArrayBindingPatternDefaultValues.ts, 30, 30))
|
||||
|
||||
] = ["skill1", "skill2"]] of multiRobots) {
|
||||
>multiRobots : Symbol(multiRobots, Decl(sourceMapValidationDestructuringForOfArrayBindingPatternDefaultValues.ts, 15, 3))
|
||||
|
||||
console.log(primarySkillA);
|
||||
>console.log : Symbol(log, Decl(sourceMapValidationDestructuringForOfArrayBindingPatternDefaultValues.ts, 0, 22))
|
||||
>console : Symbol(console, Decl(sourceMapValidationDestructuringForOfArrayBindingPatternDefaultValues.ts, 0, 11))
|
||||
>log : Symbol(log, Decl(sourceMapValidationDestructuringForOfArrayBindingPatternDefaultValues.ts, 0, 22))
|
||||
>primarySkillA : Symbol(primarySkillA, Decl(sourceMapValidationDestructuringForOfArrayBindingPatternDefaultValues.ts, 29, 13))
|
||||
}
|
||||
for (let [, [
|
||||
primarySkillA = "primary",
|
||||
>primarySkillA : Symbol(primarySkillA, Decl(sourceMapValidationDestructuringForOfArrayBindingPatternDefaultValues.ts, 35, 13))
|
||||
|
||||
secondarySkillA = "secondary"
|
||||
>secondarySkillA : Symbol(secondarySkillA, Decl(sourceMapValidationDestructuringForOfArrayBindingPatternDefaultValues.ts, 36, 30))
|
||||
|
||||
] = ["skill1", "skill2"]] of getMultiRobots()) {
|
||||
>getMultiRobots : Symbol(getMultiRobots, Decl(sourceMapValidationDestructuringForOfArrayBindingPatternDefaultValues.ts, 15, 45))
|
||||
|
||||
console.log(primarySkillA);
|
||||
>console.log : Symbol(log, Decl(sourceMapValidationDestructuringForOfArrayBindingPatternDefaultValues.ts, 0, 22))
|
||||
>console : Symbol(console, Decl(sourceMapValidationDestructuringForOfArrayBindingPatternDefaultValues.ts, 0, 11))
|
||||
>log : Symbol(log, Decl(sourceMapValidationDestructuringForOfArrayBindingPatternDefaultValues.ts, 0, 22))
|
||||
>primarySkillA : Symbol(primarySkillA, Decl(sourceMapValidationDestructuringForOfArrayBindingPatternDefaultValues.ts, 35, 13))
|
||||
}
|
||||
for (let [, [
|
||||
primarySkillA = "primary",
|
||||
>primarySkillA : Symbol(primarySkillA, Decl(sourceMapValidationDestructuringForOfArrayBindingPatternDefaultValues.ts, 41, 13))
|
||||
|
||||
secondarySkillA = "secondary"
|
||||
>secondarySkillA : Symbol(secondarySkillA, Decl(sourceMapValidationDestructuringForOfArrayBindingPatternDefaultValues.ts, 42, 30))
|
||||
|
||||
] = ["skill1", "skill2"]] of [multiRobotA, multiRobotB]) {
|
||||
>multiRobotA : Symbol(multiRobotA, Decl(sourceMapValidationDestructuringForOfArrayBindingPatternDefaultValues.ts, 13, 3))
|
||||
>multiRobotB : Symbol(multiRobotB, Decl(sourceMapValidationDestructuringForOfArrayBindingPatternDefaultValues.ts, 14, 3))
|
||||
|
||||
console.log(primarySkillA);
|
||||
>console.log : Symbol(log, Decl(sourceMapValidationDestructuringForOfArrayBindingPatternDefaultValues.ts, 0, 22))
|
||||
>console : Symbol(console, Decl(sourceMapValidationDestructuringForOfArrayBindingPatternDefaultValues.ts, 0, 11))
|
||||
>log : Symbol(log, Decl(sourceMapValidationDestructuringForOfArrayBindingPatternDefaultValues.ts, 0, 22))
|
||||
>primarySkillA : Symbol(primarySkillA, Decl(sourceMapValidationDestructuringForOfArrayBindingPatternDefaultValues.ts, 41, 13))
|
||||
}
|
||||
|
||||
for (let [numberB = -1] of robots) {
|
||||
>numberB : Symbol(numberB, Decl(sourceMapValidationDestructuringForOfArrayBindingPatternDefaultValues.ts, 48, 10))
|
||||
>robots : Symbol(robots, Decl(sourceMapValidationDestructuringForOfArrayBindingPatternDefaultValues.ts, 8, 3))
|
||||
|
||||
console.log(numberB);
|
||||
>console.log : Symbol(log, Decl(sourceMapValidationDestructuringForOfArrayBindingPatternDefaultValues.ts, 0, 22))
|
||||
>console : Symbol(console, Decl(sourceMapValidationDestructuringForOfArrayBindingPatternDefaultValues.ts, 0, 11))
|
||||
>log : Symbol(log, Decl(sourceMapValidationDestructuringForOfArrayBindingPatternDefaultValues.ts, 0, 22))
|
||||
>numberB : Symbol(numberB, Decl(sourceMapValidationDestructuringForOfArrayBindingPatternDefaultValues.ts, 48, 10))
|
||||
}
|
||||
for (let [numberB = -1] of getRobots()) {
|
||||
>numberB : Symbol(numberB, Decl(sourceMapValidationDestructuringForOfArrayBindingPatternDefaultValues.ts, 51, 10))
|
||||
>getRobots : Symbol(getRobots, Decl(sourceMapValidationDestructuringForOfArrayBindingPatternDefaultValues.ts, 8, 30))
|
||||
|
||||
console.log(numberB);
|
||||
>console.log : Symbol(log, Decl(sourceMapValidationDestructuringForOfArrayBindingPatternDefaultValues.ts, 0, 22))
|
||||
>console : Symbol(console, Decl(sourceMapValidationDestructuringForOfArrayBindingPatternDefaultValues.ts, 0, 11))
|
||||
>log : Symbol(log, Decl(sourceMapValidationDestructuringForOfArrayBindingPatternDefaultValues.ts, 0, 22))
|
||||
>numberB : Symbol(numberB, Decl(sourceMapValidationDestructuringForOfArrayBindingPatternDefaultValues.ts, 51, 10))
|
||||
}
|
||||
for (let [numberB = -1] of [robotA, robotB]) {
|
||||
>numberB : Symbol(numberB, Decl(sourceMapValidationDestructuringForOfArrayBindingPatternDefaultValues.ts, 54, 10))
|
||||
>robotA : Symbol(robotA, Decl(sourceMapValidationDestructuringForOfArrayBindingPatternDefaultValues.ts, 6, 3))
|
||||
>robotB : Symbol(robotB, Decl(sourceMapValidationDestructuringForOfArrayBindingPatternDefaultValues.ts, 7, 3))
|
||||
|
||||
console.log(numberB);
|
||||
>console.log : Symbol(log, Decl(sourceMapValidationDestructuringForOfArrayBindingPatternDefaultValues.ts, 0, 22))
|
||||
>console : Symbol(console, Decl(sourceMapValidationDestructuringForOfArrayBindingPatternDefaultValues.ts, 0, 11))
|
||||
>log : Symbol(log, Decl(sourceMapValidationDestructuringForOfArrayBindingPatternDefaultValues.ts, 0, 22))
|
||||
>numberB : Symbol(numberB, Decl(sourceMapValidationDestructuringForOfArrayBindingPatternDefaultValues.ts, 54, 10))
|
||||
}
|
||||
for (let [nameB = "noName"] of multiRobots) {
|
||||
>nameB : Symbol(nameB, Decl(sourceMapValidationDestructuringForOfArrayBindingPatternDefaultValues.ts, 57, 10))
|
||||
>multiRobots : Symbol(multiRobots, Decl(sourceMapValidationDestructuringForOfArrayBindingPatternDefaultValues.ts, 15, 3))
|
||||
|
||||
console.log(nameB);
|
||||
>console.log : Symbol(log, Decl(sourceMapValidationDestructuringForOfArrayBindingPatternDefaultValues.ts, 0, 22))
|
||||
>console : Symbol(console, Decl(sourceMapValidationDestructuringForOfArrayBindingPatternDefaultValues.ts, 0, 11))
|
||||
>log : Symbol(log, Decl(sourceMapValidationDestructuringForOfArrayBindingPatternDefaultValues.ts, 0, 22))
|
||||
>nameB : Symbol(nameB, Decl(sourceMapValidationDestructuringForOfArrayBindingPatternDefaultValues.ts, 57, 10))
|
||||
}
|
||||
for (let [nameB = "noName"] of getMultiRobots()) {
|
||||
>nameB : Symbol(nameB, Decl(sourceMapValidationDestructuringForOfArrayBindingPatternDefaultValues.ts, 60, 10))
|
||||
>getMultiRobots : Symbol(getMultiRobots, Decl(sourceMapValidationDestructuringForOfArrayBindingPatternDefaultValues.ts, 15, 45))
|
||||
|
||||
console.log(nameB);
|
||||
>console.log : Symbol(log, Decl(sourceMapValidationDestructuringForOfArrayBindingPatternDefaultValues.ts, 0, 22))
|
||||
>console : Symbol(console, Decl(sourceMapValidationDestructuringForOfArrayBindingPatternDefaultValues.ts, 0, 11))
|
||||
>log : Symbol(log, Decl(sourceMapValidationDestructuringForOfArrayBindingPatternDefaultValues.ts, 0, 22))
|
||||
>nameB : Symbol(nameB, Decl(sourceMapValidationDestructuringForOfArrayBindingPatternDefaultValues.ts, 60, 10))
|
||||
}
|
||||
for (let [nameB = "noName"] of [multiRobotA, multiRobotB]) {
|
||||
>nameB : Symbol(nameB, Decl(sourceMapValidationDestructuringForOfArrayBindingPatternDefaultValues.ts, 63, 10))
|
||||
>multiRobotA : Symbol(multiRobotA, Decl(sourceMapValidationDestructuringForOfArrayBindingPatternDefaultValues.ts, 13, 3))
|
||||
>multiRobotB : Symbol(multiRobotB, Decl(sourceMapValidationDestructuringForOfArrayBindingPatternDefaultValues.ts, 14, 3))
|
||||
|
||||
console.log(nameB);
|
||||
>console.log : Symbol(log, Decl(sourceMapValidationDestructuringForOfArrayBindingPatternDefaultValues.ts, 0, 22))
|
||||
>console : Symbol(console, Decl(sourceMapValidationDestructuringForOfArrayBindingPatternDefaultValues.ts, 0, 11))
|
||||
>log : Symbol(log, Decl(sourceMapValidationDestructuringForOfArrayBindingPatternDefaultValues.ts, 0, 22))
|
||||
>nameB : Symbol(nameB, Decl(sourceMapValidationDestructuringForOfArrayBindingPatternDefaultValues.ts, 63, 10))
|
||||
}
|
||||
|
||||
for (let [numberA2 = -1, nameA2 = "noName", skillA2 = "skill"] of robots) {
|
||||
>numberA2 : Symbol(numberA2, Decl(sourceMapValidationDestructuringForOfArrayBindingPatternDefaultValues.ts, 67, 10))
|
||||
>nameA2 : Symbol(nameA2, Decl(sourceMapValidationDestructuringForOfArrayBindingPatternDefaultValues.ts, 67, 24))
|
||||
>skillA2 : Symbol(skillA2, Decl(sourceMapValidationDestructuringForOfArrayBindingPatternDefaultValues.ts, 67, 43))
|
||||
>robots : Symbol(robots, Decl(sourceMapValidationDestructuringForOfArrayBindingPatternDefaultValues.ts, 8, 3))
|
||||
|
||||
console.log(nameA2);
|
||||
>console.log : Symbol(log, Decl(sourceMapValidationDestructuringForOfArrayBindingPatternDefaultValues.ts, 0, 22))
|
||||
>console : Symbol(console, Decl(sourceMapValidationDestructuringForOfArrayBindingPatternDefaultValues.ts, 0, 11))
|
||||
>log : Symbol(log, Decl(sourceMapValidationDestructuringForOfArrayBindingPatternDefaultValues.ts, 0, 22))
|
||||
>nameA2 : Symbol(nameA2, Decl(sourceMapValidationDestructuringForOfArrayBindingPatternDefaultValues.ts, 67, 24))
|
||||
}
|
||||
for (let [numberA2 = -1, nameA2 = "noName", skillA2 = "skill"] of getRobots()) {
|
||||
>numberA2 : Symbol(numberA2, Decl(sourceMapValidationDestructuringForOfArrayBindingPatternDefaultValues.ts, 70, 10))
|
||||
>nameA2 : Symbol(nameA2, Decl(sourceMapValidationDestructuringForOfArrayBindingPatternDefaultValues.ts, 70, 24))
|
||||
>skillA2 : Symbol(skillA2, Decl(sourceMapValidationDestructuringForOfArrayBindingPatternDefaultValues.ts, 70, 43))
|
||||
>getRobots : Symbol(getRobots, Decl(sourceMapValidationDestructuringForOfArrayBindingPatternDefaultValues.ts, 8, 30))
|
||||
|
||||
console.log(nameA2);
|
||||
>console.log : Symbol(log, Decl(sourceMapValidationDestructuringForOfArrayBindingPatternDefaultValues.ts, 0, 22))
|
||||
>console : Symbol(console, Decl(sourceMapValidationDestructuringForOfArrayBindingPatternDefaultValues.ts, 0, 11))
|
||||
>log : Symbol(log, Decl(sourceMapValidationDestructuringForOfArrayBindingPatternDefaultValues.ts, 0, 22))
|
||||
>nameA2 : Symbol(nameA2, Decl(sourceMapValidationDestructuringForOfArrayBindingPatternDefaultValues.ts, 70, 24))
|
||||
}
|
||||
for (let [numberA2 = -1, nameA2 = "noName", skillA2 = "skill"] of [robotA, robotB]) {
|
||||
>numberA2 : Symbol(numberA2, Decl(sourceMapValidationDestructuringForOfArrayBindingPatternDefaultValues.ts, 73, 10))
|
||||
>nameA2 : Symbol(nameA2, Decl(sourceMapValidationDestructuringForOfArrayBindingPatternDefaultValues.ts, 73, 24))
|
||||
>skillA2 : Symbol(skillA2, Decl(sourceMapValidationDestructuringForOfArrayBindingPatternDefaultValues.ts, 73, 43))
|
||||
>robotA : Symbol(robotA, Decl(sourceMapValidationDestructuringForOfArrayBindingPatternDefaultValues.ts, 6, 3))
|
||||
>robotB : Symbol(robotB, Decl(sourceMapValidationDestructuringForOfArrayBindingPatternDefaultValues.ts, 7, 3))
|
||||
|
||||
console.log(nameA2);
|
||||
>console.log : Symbol(log, Decl(sourceMapValidationDestructuringForOfArrayBindingPatternDefaultValues.ts, 0, 22))
|
||||
>console : Symbol(console, Decl(sourceMapValidationDestructuringForOfArrayBindingPatternDefaultValues.ts, 0, 11))
|
||||
>log : Symbol(log, Decl(sourceMapValidationDestructuringForOfArrayBindingPatternDefaultValues.ts, 0, 22))
|
||||
>nameA2 : Symbol(nameA2, Decl(sourceMapValidationDestructuringForOfArrayBindingPatternDefaultValues.ts, 73, 24))
|
||||
}
|
||||
for (let [nameMA = "noName", [
|
||||
>nameMA : Symbol(nameMA, Decl(sourceMapValidationDestructuringForOfArrayBindingPatternDefaultValues.ts, 76, 10))
|
||||
|
||||
primarySkillA = "primary",
|
||||
>primarySkillA : Symbol(primarySkillA, Decl(sourceMapValidationDestructuringForOfArrayBindingPatternDefaultValues.ts, 76, 30))
|
||||
|
||||
secondarySkillA = "secondary"
|
||||
>secondarySkillA : Symbol(secondarySkillA, Decl(sourceMapValidationDestructuringForOfArrayBindingPatternDefaultValues.ts, 77, 30))
|
||||
|
||||
] = ["skill1", "skill2"]] of multiRobots) {
|
||||
>multiRobots : Symbol(multiRobots, Decl(sourceMapValidationDestructuringForOfArrayBindingPatternDefaultValues.ts, 15, 3))
|
||||
|
||||
console.log(nameMA);
|
||||
>console.log : Symbol(log, Decl(sourceMapValidationDestructuringForOfArrayBindingPatternDefaultValues.ts, 0, 22))
|
||||
>console : Symbol(console, Decl(sourceMapValidationDestructuringForOfArrayBindingPatternDefaultValues.ts, 0, 11))
|
||||
>log : Symbol(log, Decl(sourceMapValidationDestructuringForOfArrayBindingPatternDefaultValues.ts, 0, 22))
|
||||
>nameMA : Symbol(nameMA, Decl(sourceMapValidationDestructuringForOfArrayBindingPatternDefaultValues.ts, 76, 10))
|
||||
}
|
||||
for (let [nameMA = "noName", [
|
||||
>nameMA : Symbol(nameMA, Decl(sourceMapValidationDestructuringForOfArrayBindingPatternDefaultValues.ts, 82, 10))
|
||||
|
||||
primarySkillA = "primary",
|
||||
>primarySkillA : Symbol(primarySkillA, Decl(sourceMapValidationDestructuringForOfArrayBindingPatternDefaultValues.ts, 82, 30))
|
||||
|
||||
secondarySkillA = "secondary"
|
||||
>secondarySkillA : Symbol(secondarySkillA, Decl(sourceMapValidationDestructuringForOfArrayBindingPatternDefaultValues.ts, 83, 30))
|
||||
|
||||
] = ["skill1", "skill2"]] of getMultiRobots()) {
|
||||
>getMultiRobots : Symbol(getMultiRobots, Decl(sourceMapValidationDestructuringForOfArrayBindingPatternDefaultValues.ts, 15, 45))
|
||||
|
||||
console.log(nameMA);
|
||||
>console.log : Symbol(log, Decl(sourceMapValidationDestructuringForOfArrayBindingPatternDefaultValues.ts, 0, 22))
|
||||
>console : Symbol(console, Decl(sourceMapValidationDestructuringForOfArrayBindingPatternDefaultValues.ts, 0, 11))
|
||||
>log : Symbol(log, Decl(sourceMapValidationDestructuringForOfArrayBindingPatternDefaultValues.ts, 0, 22))
|
||||
>nameMA : Symbol(nameMA, Decl(sourceMapValidationDestructuringForOfArrayBindingPatternDefaultValues.ts, 82, 10))
|
||||
}
|
||||
for (let [nameMA = "noName", [
|
||||
>nameMA : Symbol(nameMA, Decl(sourceMapValidationDestructuringForOfArrayBindingPatternDefaultValues.ts, 88, 10))
|
||||
|
||||
primarySkillA = "primary",
|
||||
>primarySkillA : Symbol(primarySkillA, Decl(sourceMapValidationDestructuringForOfArrayBindingPatternDefaultValues.ts, 88, 30))
|
||||
|
||||
secondarySkillA = "secondary"
|
||||
>secondarySkillA : Symbol(secondarySkillA, Decl(sourceMapValidationDestructuringForOfArrayBindingPatternDefaultValues.ts, 89, 30))
|
||||
|
||||
] = ["skill1", "skill2"]] of [multiRobotA, multiRobotB]) {
|
||||
>multiRobotA : Symbol(multiRobotA, Decl(sourceMapValidationDestructuringForOfArrayBindingPatternDefaultValues.ts, 13, 3))
|
||||
>multiRobotB : Symbol(multiRobotB, Decl(sourceMapValidationDestructuringForOfArrayBindingPatternDefaultValues.ts, 14, 3))
|
||||
|
||||
console.log(nameMA);
|
||||
>console.log : Symbol(log, Decl(sourceMapValidationDestructuringForOfArrayBindingPatternDefaultValues.ts, 0, 22))
|
||||
>console : Symbol(console, Decl(sourceMapValidationDestructuringForOfArrayBindingPatternDefaultValues.ts, 0, 11))
|
||||
>log : Symbol(log, Decl(sourceMapValidationDestructuringForOfArrayBindingPatternDefaultValues.ts, 0, 22))
|
||||
>nameMA : Symbol(nameMA, Decl(sourceMapValidationDestructuringForOfArrayBindingPatternDefaultValues.ts, 88, 10))
|
||||
}
|
||||
|
||||
for (let [numberA3 = -1, ...robotAInfo] of robots) {
|
||||
>numberA3 : Symbol(numberA3, Decl(sourceMapValidationDestructuringForOfArrayBindingPatternDefaultValues.ts, 95, 10))
|
||||
>robotAInfo : Symbol(robotAInfo, Decl(sourceMapValidationDestructuringForOfArrayBindingPatternDefaultValues.ts, 95, 24))
|
||||
>robots : Symbol(robots, Decl(sourceMapValidationDestructuringForOfArrayBindingPatternDefaultValues.ts, 8, 3))
|
||||
|
||||
console.log(numberA3);
|
||||
>console.log : Symbol(log, Decl(sourceMapValidationDestructuringForOfArrayBindingPatternDefaultValues.ts, 0, 22))
|
||||
>console : Symbol(console, Decl(sourceMapValidationDestructuringForOfArrayBindingPatternDefaultValues.ts, 0, 11))
|
||||
>log : Symbol(log, Decl(sourceMapValidationDestructuringForOfArrayBindingPatternDefaultValues.ts, 0, 22))
|
||||
>numberA3 : Symbol(numberA3, Decl(sourceMapValidationDestructuringForOfArrayBindingPatternDefaultValues.ts, 95, 10))
|
||||
}
|
||||
for (let [numberA3 = -1, ...robotAInfo] of getRobots()) {
|
||||
>numberA3 : Symbol(numberA3, Decl(sourceMapValidationDestructuringForOfArrayBindingPatternDefaultValues.ts, 98, 10))
|
||||
>robotAInfo : Symbol(robotAInfo, Decl(sourceMapValidationDestructuringForOfArrayBindingPatternDefaultValues.ts, 98, 24))
|
||||
>getRobots : Symbol(getRobots, Decl(sourceMapValidationDestructuringForOfArrayBindingPatternDefaultValues.ts, 8, 30))
|
||||
|
||||
console.log(numberA3);
|
||||
>console.log : Symbol(log, Decl(sourceMapValidationDestructuringForOfArrayBindingPatternDefaultValues.ts, 0, 22))
|
||||
>console : Symbol(console, Decl(sourceMapValidationDestructuringForOfArrayBindingPatternDefaultValues.ts, 0, 11))
|
||||
>log : Symbol(log, Decl(sourceMapValidationDestructuringForOfArrayBindingPatternDefaultValues.ts, 0, 22))
|
||||
>numberA3 : Symbol(numberA3, Decl(sourceMapValidationDestructuringForOfArrayBindingPatternDefaultValues.ts, 98, 10))
|
||||
}
|
||||
for (let [numberA3 = -1, ...robotAInfo] of [robotA, robotB]) {
|
||||
>numberA3 : Symbol(numberA3, Decl(sourceMapValidationDestructuringForOfArrayBindingPatternDefaultValues.ts, 101, 10))
|
||||
>robotAInfo : Symbol(robotAInfo, Decl(sourceMapValidationDestructuringForOfArrayBindingPatternDefaultValues.ts, 101, 24))
|
||||
>robotA : Symbol(robotA, Decl(sourceMapValidationDestructuringForOfArrayBindingPatternDefaultValues.ts, 6, 3))
|
||||
>robotB : Symbol(robotB, Decl(sourceMapValidationDestructuringForOfArrayBindingPatternDefaultValues.ts, 7, 3))
|
||||
|
||||
console.log(numberA3);
|
||||
>console.log : Symbol(log, Decl(sourceMapValidationDestructuringForOfArrayBindingPatternDefaultValues.ts, 0, 22))
|
||||
>console : Symbol(console, Decl(sourceMapValidationDestructuringForOfArrayBindingPatternDefaultValues.ts, 0, 11))
|
||||
>log : Symbol(log, Decl(sourceMapValidationDestructuringForOfArrayBindingPatternDefaultValues.ts, 0, 22))
|
||||
>numberA3 : Symbol(numberA3, Decl(sourceMapValidationDestructuringForOfArrayBindingPatternDefaultValues.ts, 101, 10))
|
||||
}
|
||||
@@ -0,0 +1,452 @@
|
||||
=== tests/cases/compiler/sourceMapValidationDestructuringForOfArrayBindingPatternDefaultValues.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 = "noName"] of robots) {
|
||||
> : undefined
|
||||
>nameA : string
|
||||
>"noName" : 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 = "noName"] of getRobots()) {
|
||||
> : undefined
|
||||
>nameA : string
|
||||
>"noName" : 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 = "noName"] of [robotA, robotB]) {
|
||||
> : undefined
|
||||
>nameA : string
|
||||
>"noName" : 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 [, [
|
||||
> : undefined
|
||||
|
||||
primarySkillA = "primary",
|
||||
>primarySkillA : string
|
||||
>"primary" : string
|
||||
|
||||
secondarySkillA = "secondary"
|
||||
>secondarySkillA : string
|
||||
>"secondary" : string
|
||||
|
||||
] = ["skill1", "skill2"]] of multiRobots) {
|
||||
>["skill1", "skill2"] : [string, string]
|
||||
>"skill1" : string
|
||||
>"skill2" : 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 [, [
|
||||
> : undefined
|
||||
|
||||
primarySkillA = "primary",
|
||||
>primarySkillA : string
|
||||
>"primary" : string
|
||||
|
||||
secondarySkillA = "secondary"
|
||||
>secondarySkillA : string
|
||||
>"secondary" : string
|
||||
|
||||
] = ["skill1", "skill2"]] of getMultiRobots()) {
|
||||
>["skill1", "skill2"] : [string, string]
|
||||
>"skill1" : string
|
||||
>"skill2" : 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 [, [
|
||||
> : undefined
|
||||
|
||||
primarySkillA = "primary",
|
||||
>primarySkillA : string
|
||||
>"primary" : string
|
||||
|
||||
secondarySkillA = "secondary"
|
||||
>secondarySkillA : string
|
||||
>"secondary" : string
|
||||
|
||||
] = ["skill1", "skill2"]] of [multiRobotA, multiRobotB]) {
|
||||
>["skill1", "skill2"] : [string, string]
|
||||
>"skill1" : string
|
||||
>"skill2" : 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 = -1] of robots) {
|
||||
>numberB : number
|
||||
>-1 : number
|
||||
>1 : 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 = -1] of getRobots()) {
|
||||
>numberB : number
|
||||
>-1 : number
|
||||
>1 : 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 = -1] of [robotA, robotB]) {
|
||||
>numberB : number
|
||||
>-1 : number
|
||||
>1 : 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 = "noName"] of multiRobots) {
|
||||
>nameB : string
|
||||
>"noName" : 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 = "noName"] of getMultiRobots()) {
|
||||
>nameB : string
|
||||
>"noName" : 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 = "noName"] of [multiRobotA, multiRobotB]) {
|
||||
>nameB : string
|
||||
>"noName" : 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 = -1, nameA2 = "noName", skillA2 = "skill"] of robots) {
|
||||
>numberA2 : number
|
||||
>-1 : number
|
||||
>1 : number
|
||||
>nameA2 : string
|
||||
>"noName" : string
|
||||
>skillA2 : string
|
||||
>"skill" : 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 = -1, nameA2 = "noName", skillA2 = "skill"] of getRobots()) {
|
||||
>numberA2 : number
|
||||
>-1 : number
|
||||
>1 : number
|
||||
>nameA2 : string
|
||||
>"noName" : string
|
||||
>skillA2 : string
|
||||
>"skill" : 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 = -1, nameA2 = "noName", skillA2 = "skill"] of [robotA, robotB]) {
|
||||
>numberA2 : number
|
||||
>-1 : number
|
||||
>1 : number
|
||||
>nameA2 : string
|
||||
>"noName" : string
|
||||
>skillA2 : string
|
||||
>"skill" : 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 = "noName", [
|
||||
>nameMA : string
|
||||
>"noName" : string
|
||||
|
||||
primarySkillA = "primary",
|
||||
>primarySkillA : string
|
||||
>"primary" : string
|
||||
|
||||
secondarySkillA = "secondary"
|
||||
>secondarySkillA : string
|
||||
>"secondary" : string
|
||||
|
||||
] = ["skill1", "skill2"]] of multiRobots) {
|
||||
>["skill1", "skill2"] : [string, string]
|
||||
>"skill1" : string
|
||||
>"skill2" : 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 = "noName", [
|
||||
>nameMA : string
|
||||
>"noName" : string
|
||||
|
||||
primarySkillA = "primary",
|
||||
>primarySkillA : string
|
||||
>"primary" : string
|
||||
|
||||
secondarySkillA = "secondary"
|
||||
>secondarySkillA : string
|
||||
>"secondary" : string
|
||||
|
||||
] = ["skill1", "skill2"]] of getMultiRobots()) {
|
||||
>["skill1", "skill2"] : [string, string]
|
||||
>"skill1" : string
|
||||
>"skill2" : 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 = "noName", [
|
||||
>nameMA : string
|
||||
>"noName" : string
|
||||
|
||||
primarySkillA = "primary",
|
||||
>primarySkillA : string
|
||||
>"primary" : string
|
||||
|
||||
secondarySkillA = "secondary"
|
||||
>secondarySkillA : string
|
||||
>"secondary" : string
|
||||
|
||||
] = ["skill1", "skill2"]] of [multiRobotA, multiRobotB]) {
|
||||
>["skill1", "skill2"] : [string, string]
|
||||
>"skill1" : string
|
||||
>"skill2" : 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 = -1, ...robotAInfo] of robots) {
|
||||
>numberA3 : number
|
||||
>-1 : number
|
||||
>1 : 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 = -1, ...robotAInfo] of getRobots()) {
|
||||
>numberA3 : number
|
||||
>-1 : number
|
||||
>1 : 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 = -1, ...robotAInfo] of [robotA, robotB]) {
|
||||
>numberA3 : number
|
||||
>-1 : number
|
||||
>1 : 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
|
||||
}
|
||||
@@ -0,0 +1,214 @@
|
||||
//// [sourceMapValidationDestructuringForOfArrayBindingPatternDefaultValues2.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;
|
||||
}
|
||||
|
||||
let nameA: string, primarySkillA: string, secondarySkillA: string;
|
||||
let numberB: number, nameB: string;
|
||||
let numberA2: number, nameA2: string, skillA2: string, nameMA: string;
|
||||
let numberA3: number, robotAInfo: (number | string)[], multiRobotAInfo: (string | [string, string])[];
|
||||
|
||||
for ([, nameA = "noName"] of robots) {
|
||||
console.log(nameA);
|
||||
}
|
||||
for ([, nameA = "noName"] of getRobots()) {
|
||||
console.log(nameA);
|
||||
}
|
||||
for ([, nameA = "noName"] of [robotA, robotB]) {
|
||||
console.log(nameA);
|
||||
}
|
||||
for ([, [
|
||||
primarySkillA = "primary",
|
||||
secondarySkillA = "secondary"
|
||||
] = ["skill1", "skill2"]] of multiRobots) {
|
||||
console.log(primarySkillA);
|
||||
}
|
||||
for ([, [
|
||||
primarySkillA = "primary",
|
||||
secondarySkillA = "secondary"
|
||||
] = ["skill1", "skill2"]] of getMultiRobots()) {
|
||||
console.log(primarySkillA);
|
||||
}
|
||||
for ([, [
|
||||
primarySkillA = "primary",
|
||||
secondarySkillA = "secondary"
|
||||
] = ["skill1", "skill2"]] of [multiRobotA, multiRobotB]) {
|
||||
console.log(primarySkillA);
|
||||
}
|
||||
|
||||
for ([numberB = -1] of robots) {
|
||||
console.log(numberB);
|
||||
}
|
||||
for ([numberB = -1] of getRobots()) {
|
||||
console.log(numberB);
|
||||
}
|
||||
for ([numberB = -1] of [robotA, robotB]) {
|
||||
console.log(numberB);
|
||||
}
|
||||
for ([nameB = "noName"] of multiRobots) {
|
||||
console.log(nameB);
|
||||
}
|
||||
for ([nameB = "noName"] of getMultiRobots()) {
|
||||
console.log(nameB);
|
||||
}
|
||||
for ([nameB = "noName"] of [multiRobotA, multiRobotB]) {
|
||||
console.log(nameB);
|
||||
}
|
||||
|
||||
for ([numberA2 = -1, nameA2 = "noName", skillA2 = "skill"] of robots) {
|
||||
console.log(nameA2);
|
||||
}
|
||||
for ([numberA2 = -1, nameA2 = "noName", skillA2 = "skill"] of getRobots()) {
|
||||
console.log(nameA2);
|
||||
}
|
||||
for ([numberA2 = -1, nameA2 = "noName", skillA2 = "skill"] of [robotA, robotB]) {
|
||||
console.log(nameA2);
|
||||
}
|
||||
for ([nameMA = "noName", [
|
||||
primarySkillA = "primary",
|
||||
secondarySkillA = "secondary"
|
||||
] = ["skill1", "skill2"]] of multiRobots) {
|
||||
console.log(nameMA);
|
||||
}
|
||||
for ([nameMA = "noName", [
|
||||
primarySkillA = "primary",
|
||||
secondarySkillA = "secondary"
|
||||
] = ["skill1", "skill2"]] of getMultiRobots()) {
|
||||
console.log(nameMA);
|
||||
}
|
||||
for ([nameMA = "noName", [
|
||||
primarySkillA = "primary",
|
||||
secondarySkillA = "secondary"
|
||||
] = ["skill1", "skill2"]] of [multiRobotA, multiRobotB]) {
|
||||
console.log(nameMA);
|
||||
}
|
||||
|
||||
for ([numberA3 = -1, ...robotAInfo] of robots) {
|
||||
console.log(numberA3);
|
||||
}
|
||||
for ([numberA3 = -1, ...robotAInfo] of getRobots()) {
|
||||
console.log(numberA3);
|
||||
}
|
||||
for ([numberA3 = -1, ...robotAInfo] of [robotA, robotB]) {
|
||||
console.log(numberA3);
|
||||
}
|
||||
|
||||
//// [sourceMapValidationDestructuringForOfArrayBindingPatternDefaultValues2.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;
|
||||
}
|
||||
var nameA, primarySkillA, secondarySkillA;
|
||||
var numberB, nameB;
|
||||
var numberA2, nameA2, skillA2, nameMA;
|
||||
var numberA3, robotAInfo, multiRobotAInfo;
|
||||
for (var _i = 0, robots_1 = robots; _i < robots_1.length; _i++) {
|
||||
_a = robots_1[_i], _b = _a[1], nameA = _b === void 0 ? "noName" : _b;
|
||||
console.log(nameA);
|
||||
}
|
||||
for (var _c = 0, _d = getRobots(); _c < _d.length; _c++) {
|
||||
_e = _d[_c], _f = _e[1], nameA = _f === void 0 ? "noName" : _f;
|
||||
console.log(nameA);
|
||||
}
|
||||
for (var _g = 0, _h = [robotA, robotB]; _g < _h.length; _g++) {
|
||||
_j = _h[_g], _k = _j[1], nameA = _k === void 0 ? "noName" : _k;
|
||||
console.log(nameA);
|
||||
}
|
||||
for (var _l = 0, multiRobots_1 = multiRobots; _l < multiRobots_1.length; _l++) {
|
||||
_m = multiRobots_1[_l], _o = _m[1], _p = _o === void 0 ? ["skill1", "skill2"] : _o, _q = _p[0], primarySkillA = _q === void 0 ? "primary" : _q, _r = _p[1], secondarySkillA = _r === void 0 ? "secondary" : _r;
|
||||
console.log(primarySkillA);
|
||||
}
|
||||
for (var _s = 0, _t = getMultiRobots(); _s < _t.length; _s++) {
|
||||
_u = _t[_s], _v = _u[1], _w = _v === void 0 ? ["skill1", "skill2"] : _v, _x = _w[0], primarySkillA = _x === void 0 ? "primary" : _x, _y = _w[1], secondarySkillA = _y === void 0 ? "secondary" : _y;
|
||||
console.log(primarySkillA);
|
||||
}
|
||||
for (var _z = 0, _0 = [multiRobotA, multiRobotB]; _z < _0.length; _z++) {
|
||||
_1 = _0[_z], _2 = _1[1], _3 = _2 === void 0 ? ["skill1", "skill2"] : _2, _4 = _3[0], primarySkillA = _4 === void 0 ? "primary" : _4, _5 = _3[1], secondarySkillA = _5 === void 0 ? "secondary" : _5;
|
||||
console.log(primarySkillA);
|
||||
}
|
||||
for (var _6 = 0, robots_2 = robots; _6 < robots_2.length; _6++) {
|
||||
_7 = robots_2[_6][0], numberB = _7 === void 0 ? -1 : _7;
|
||||
console.log(numberB);
|
||||
}
|
||||
for (var _8 = 0, _9 = getRobots(); _8 < _9.length; _8++) {
|
||||
_10 = _9[_8][0], numberB = _10 === void 0 ? -1 : _10;
|
||||
console.log(numberB);
|
||||
}
|
||||
for (var _11 = 0, _12 = [robotA, robotB]; _11 < _12.length; _11++) {
|
||||
_13 = _12[_11][0], numberB = _13 === void 0 ? -1 : _13;
|
||||
console.log(numberB);
|
||||
}
|
||||
for (var _14 = 0, multiRobots_2 = multiRobots; _14 < multiRobots_2.length; _14++) {
|
||||
_15 = multiRobots_2[_14][0], nameB = _15 === void 0 ? "noName" : _15;
|
||||
console.log(nameB);
|
||||
}
|
||||
for (var _16 = 0, _17 = getMultiRobots(); _16 < _17.length; _16++) {
|
||||
_18 = _17[_16][0], nameB = _18 === void 0 ? "noName" : _18;
|
||||
console.log(nameB);
|
||||
}
|
||||
for (var _19 = 0, _20 = [multiRobotA, multiRobotB]; _19 < _20.length; _19++) {
|
||||
_21 = _20[_19][0], nameB = _21 === void 0 ? "noName" : _21;
|
||||
console.log(nameB);
|
||||
}
|
||||
for (var _22 = 0, robots_3 = robots; _22 < robots_3.length; _22++) {
|
||||
_23 = robots_3[_22], _24 = _23[0], numberA2 = _24 === void 0 ? -1 : _24, _25 = _23[1], nameA2 = _25 === void 0 ? "noName" : _25, _26 = _23[2], skillA2 = _26 === void 0 ? "skill" : _26;
|
||||
console.log(nameA2);
|
||||
}
|
||||
for (var _27 = 0, _28 = getRobots(); _27 < _28.length; _27++) {
|
||||
_29 = _28[_27], _30 = _29[0], numberA2 = _30 === void 0 ? -1 : _30, _31 = _29[1], nameA2 = _31 === void 0 ? "noName" : _31, _32 = _29[2], skillA2 = _32 === void 0 ? "skill" : _32;
|
||||
console.log(nameA2);
|
||||
}
|
||||
for (var _33 = 0, _34 = [robotA, robotB]; _33 < _34.length; _33++) {
|
||||
_35 = _34[_33], _36 = _35[0], numberA2 = _36 === void 0 ? -1 : _36, _37 = _35[1], nameA2 = _37 === void 0 ? "noName" : _37, _38 = _35[2], skillA2 = _38 === void 0 ? "skill" : _38;
|
||||
console.log(nameA2);
|
||||
}
|
||||
for (var _39 = 0, multiRobots_3 = multiRobots; _39 < multiRobots_3.length; _39++) {
|
||||
_40 = multiRobots_3[_39], _41 = _40[0], nameMA = _41 === void 0 ? "noName" : _41, _42 = _40[1], _43 = _42 === void 0 ? ["skill1", "skill2"] : _42, _44 = _43[0], primarySkillA = _44 === void 0 ? "primary" : _44, _45 = _43[1], secondarySkillA = _45 === void 0 ? "secondary" : _45;
|
||||
console.log(nameMA);
|
||||
}
|
||||
for (var _46 = 0, _47 = getMultiRobots(); _46 < _47.length; _46++) {
|
||||
_48 = _47[_46], _49 = _48[0], nameMA = _49 === void 0 ? "noName" : _49, _50 = _48[1], _51 = _50 === void 0 ? ["skill1", "skill2"] : _50, _52 = _51[0], primarySkillA = _52 === void 0 ? "primary" : _52, _53 = _51[1], secondarySkillA = _53 === void 0 ? "secondary" : _53;
|
||||
console.log(nameMA);
|
||||
}
|
||||
for (var _54 = 0, _55 = [multiRobotA, multiRobotB]; _54 < _55.length; _54++) {
|
||||
_56 = _55[_54], _57 = _56[0], nameMA = _57 === void 0 ? "noName" : _57, _58 = _56[1], _59 = _58 === void 0 ? ["skill1", "skill2"] : _58, _60 = _59[0], primarySkillA = _60 === void 0 ? "primary" : _60, _61 = _59[1], secondarySkillA = _61 === void 0 ? "secondary" : _61;
|
||||
console.log(nameMA);
|
||||
}
|
||||
for (var _62 = 0, robots_4 = robots; _62 < robots_4.length; _62++) {
|
||||
_63 = robots_4[_62], _64 = _63[0], numberA3 = _64 === void 0 ? -1 : _64, robotAInfo = _63.slice(1);
|
||||
console.log(numberA3);
|
||||
}
|
||||
for (var _65 = 0, _66 = getRobots(); _65 < _66.length; _65++) {
|
||||
_67 = _66[_65], _68 = _67[0], numberA3 = _68 === void 0 ? -1 : _68, robotAInfo = _67.slice(1);
|
||||
console.log(numberA3);
|
||||
}
|
||||
for (var _69 = 0, _70 = [robotA, robotB]; _69 < _70.length; _69++) {
|
||||
_71 = _70[_69], _72 = _71[0], numberA3 = _72 === void 0 ? -1 : _72, robotAInfo = _71.slice(1);
|
||||
console.log(numberA3);
|
||||
}
|
||||
var _a, _b, _e, _f, _j, _k, _m, _o, _p, _q, _r, _u, _v, _w, _x, _y, _1, _2, _3, _4, _5, _7, _10, _13, _15, _18, _21, _23, _24, _25, _26, _29, _30, _31, _32, _35, _36, _37, _38, _40, _41, _42, _43, _44, _45, _48, _49, _50, _51, _52, _53, _56, _57, _58, _59, _60, _61, _63, _64, _67, _68, _71, _72;
|
||||
//# sourceMappingURL=sourceMapValidationDestructuringForOfArrayBindingPatternDefaultValues2.js.map
|
||||
@@ -0,0 +1,2 @@
|
||||
//// [sourceMapValidationDestructuringForOfArrayBindingPatternDefaultValues2.js.map]
|
||||
{"version":3,"file":"sourceMapValidationDestructuringForOfArrayBindingPatternDefaultValues2.js","sourceRoot":"","sources":["sourceMapValidationDestructuringForOfArrayBindingPatternDefaultValues2.ts"],"names":[],"mappings":"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"}
|
||||
File diff suppressed because it is too large
Load Diff
@@ -0,0 +1,345 @@
|
||||
=== tests/cases/compiler/sourceMapValidationDestructuringForOfArrayBindingPatternDefaultValues2.ts ===
|
||||
declare var console: {
|
||||
>console : Symbol(console, Decl(sourceMapValidationDestructuringForOfArrayBindingPatternDefaultValues2.ts, 0, 11))
|
||||
|
||||
log(msg: any): void;
|
||||
>log : Symbol(log, Decl(sourceMapValidationDestructuringForOfArrayBindingPatternDefaultValues2.ts, 0, 22))
|
||||
>msg : Symbol(msg, Decl(sourceMapValidationDestructuringForOfArrayBindingPatternDefaultValues2.ts, 1, 8))
|
||||
}
|
||||
type Robot = [number, string, string];
|
||||
>Robot : Symbol(Robot, Decl(sourceMapValidationDestructuringForOfArrayBindingPatternDefaultValues2.ts, 2, 1))
|
||||
|
||||
type MultiSkilledRobot = [string, [string, string]];
|
||||
>MultiSkilledRobot : Symbol(MultiSkilledRobot, Decl(sourceMapValidationDestructuringForOfArrayBindingPatternDefaultValues2.ts, 3, 38))
|
||||
|
||||
let robotA: Robot = [1, "mower", "mowing"];
|
||||
>robotA : Symbol(robotA, Decl(sourceMapValidationDestructuringForOfArrayBindingPatternDefaultValues2.ts, 6, 3))
|
||||
>Robot : Symbol(Robot, Decl(sourceMapValidationDestructuringForOfArrayBindingPatternDefaultValues2.ts, 2, 1))
|
||||
|
||||
let robotB: Robot = [2, "trimmer", "trimming"];
|
||||
>robotB : Symbol(robotB, Decl(sourceMapValidationDestructuringForOfArrayBindingPatternDefaultValues2.ts, 7, 3))
|
||||
>Robot : Symbol(Robot, Decl(sourceMapValidationDestructuringForOfArrayBindingPatternDefaultValues2.ts, 2, 1))
|
||||
|
||||
let robots = [robotA, robotB];
|
||||
>robots : Symbol(robots, Decl(sourceMapValidationDestructuringForOfArrayBindingPatternDefaultValues2.ts, 8, 3))
|
||||
>robotA : Symbol(robotA, Decl(sourceMapValidationDestructuringForOfArrayBindingPatternDefaultValues2.ts, 6, 3))
|
||||
>robotB : Symbol(robotB, Decl(sourceMapValidationDestructuringForOfArrayBindingPatternDefaultValues2.ts, 7, 3))
|
||||
|
||||
function getRobots() {
|
||||
>getRobots : Symbol(getRobots, Decl(sourceMapValidationDestructuringForOfArrayBindingPatternDefaultValues2.ts, 8, 30))
|
||||
|
||||
return robots;
|
||||
>robots : Symbol(robots, Decl(sourceMapValidationDestructuringForOfArrayBindingPatternDefaultValues2.ts, 8, 3))
|
||||
}
|
||||
|
||||
let multiRobotA: MultiSkilledRobot = ["mower", ["mowing", ""]];
|
||||
>multiRobotA : Symbol(multiRobotA, Decl(sourceMapValidationDestructuringForOfArrayBindingPatternDefaultValues2.ts, 13, 3))
|
||||
>MultiSkilledRobot : Symbol(MultiSkilledRobot, Decl(sourceMapValidationDestructuringForOfArrayBindingPatternDefaultValues2.ts, 3, 38))
|
||||
|
||||
let multiRobotB: MultiSkilledRobot = ["trimmer", ["trimming", "edging"]];
|
||||
>multiRobotB : Symbol(multiRobotB, Decl(sourceMapValidationDestructuringForOfArrayBindingPatternDefaultValues2.ts, 14, 3))
|
||||
>MultiSkilledRobot : Symbol(MultiSkilledRobot, Decl(sourceMapValidationDestructuringForOfArrayBindingPatternDefaultValues2.ts, 3, 38))
|
||||
|
||||
let multiRobots = [multiRobotA, multiRobotB];
|
||||
>multiRobots : Symbol(multiRobots, Decl(sourceMapValidationDestructuringForOfArrayBindingPatternDefaultValues2.ts, 15, 3))
|
||||
>multiRobotA : Symbol(multiRobotA, Decl(sourceMapValidationDestructuringForOfArrayBindingPatternDefaultValues2.ts, 13, 3))
|
||||
>multiRobotB : Symbol(multiRobotB, Decl(sourceMapValidationDestructuringForOfArrayBindingPatternDefaultValues2.ts, 14, 3))
|
||||
|
||||
function getMultiRobots() {
|
||||
>getMultiRobots : Symbol(getMultiRobots, Decl(sourceMapValidationDestructuringForOfArrayBindingPatternDefaultValues2.ts, 15, 45))
|
||||
|
||||
return multiRobots;
|
||||
>multiRobots : Symbol(multiRobots, Decl(sourceMapValidationDestructuringForOfArrayBindingPatternDefaultValues2.ts, 15, 3))
|
||||
}
|
||||
|
||||
let nameA: string, primarySkillA: string, secondarySkillA: string;
|
||||
>nameA : Symbol(nameA, Decl(sourceMapValidationDestructuringForOfArrayBindingPatternDefaultValues2.ts, 20, 3))
|
||||
>primarySkillA : Symbol(primarySkillA, Decl(sourceMapValidationDestructuringForOfArrayBindingPatternDefaultValues2.ts, 20, 18))
|
||||
>secondarySkillA : Symbol(secondarySkillA, Decl(sourceMapValidationDestructuringForOfArrayBindingPatternDefaultValues2.ts, 20, 41))
|
||||
|
||||
let numberB: number, nameB: string;
|
||||
>numberB : Symbol(numberB, Decl(sourceMapValidationDestructuringForOfArrayBindingPatternDefaultValues2.ts, 21, 3))
|
||||
>nameB : Symbol(nameB, Decl(sourceMapValidationDestructuringForOfArrayBindingPatternDefaultValues2.ts, 21, 20))
|
||||
|
||||
let numberA2: number, nameA2: string, skillA2: string, nameMA: string;
|
||||
>numberA2 : Symbol(numberA2, Decl(sourceMapValidationDestructuringForOfArrayBindingPatternDefaultValues2.ts, 22, 3))
|
||||
>nameA2 : Symbol(nameA2, Decl(sourceMapValidationDestructuringForOfArrayBindingPatternDefaultValues2.ts, 22, 21))
|
||||
>skillA2 : Symbol(skillA2, Decl(sourceMapValidationDestructuringForOfArrayBindingPatternDefaultValues2.ts, 22, 37))
|
||||
>nameMA : Symbol(nameMA, Decl(sourceMapValidationDestructuringForOfArrayBindingPatternDefaultValues2.ts, 22, 54))
|
||||
|
||||
let numberA3: number, robotAInfo: (number | string)[], multiRobotAInfo: (string | [string, string])[];
|
||||
>numberA3 : Symbol(numberA3, Decl(sourceMapValidationDestructuringForOfArrayBindingPatternDefaultValues2.ts, 23, 3))
|
||||
>robotAInfo : Symbol(robotAInfo, Decl(sourceMapValidationDestructuringForOfArrayBindingPatternDefaultValues2.ts, 23, 21))
|
||||
>multiRobotAInfo : Symbol(multiRobotAInfo, Decl(sourceMapValidationDestructuringForOfArrayBindingPatternDefaultValues2.ts, 23, 54))
|
||||
|
||||
for ([, nameA = "noName"] of robots) {
|
||||
>nameA : Symbol(nameA, Decl(sourceMapValidationDestructuringForOfArrayBindingPatternDefaultValues2.ts, 20, 3))
|
||||
>robots : Symbol(robots, Decl(sourceMapValidationDestructuringForOfArrayBindingPatternDefaultValues2.ts, 8, 3))
|
||||
|
||||
console.log(nameA);
|
||||
>console.log : Symbol(log, Decl(sourceMapValidationDestructuringForOfArrayBindingPatternDefaultValues2.ts, 0, 22))
|
||||
>console : Symbol(console, Decl(sourceMapValidationDestructuringForOfArrayBindingPatternDefaultValues2.ts, 0, 11))
|
||||
>log : Symbol(log, Decl(sourceMapValidationDestructuringForOfArrayBindingPatternDefaultValues2.ts, 0, 22))
|
||||
>nameA : Symbol(nameA, Decl(sourceMapValidationDestructuringForOfArrayBindingPatternDefaultValues2.ts, 20, 3))
|
||||
}
|
||||
for ([, nameA = "noName"] of getRobots()) {
|
||||
>nameA : Symbol(nameA, Decl(sourceMapValidationDestructuringForOfArrayBindingPatternDefaultValues2.ts, 20, 3))
|
||||
>getRobots : Symbol(getRobots, Decl(sourceMapValidationDestructuringForOfArrayBindingPatternDefaultValues2.ts, 8, 30))
|
||||
|
||||
console.log(nameA);
|
||||
>console.log : Symbol(log, Decl(sourceMapValidationDestructuringForOfArrayBindingPatternDefaultValues2.ts, 0, 22))
|
||||
>console : Symbol(console, Decl(sourceMapValidationDestructuringForOfArrayBindingPatternDefaultValues2.ts, 0, 11))
|
||||
>log : Symbol(log, Decl(sourceMapValidationDestructuringForOfArrayBindingPatternDefaultValues2.ts, 0, 22))
|
||||
>nameA : Symbol(nameA, Decl(sourceMapValidationDestructuringForOfArrayBindingPatternDefaultValues2.ts, 20, 3))
|
||||
}
|
||||
for ([, nameA = "noName"] of [robotA, robotB]) {
|
||||
>nameA : Symbol(nameA, Decl(sourceMapValidationDestructuringForOfArrayBindingPatternDefaultValues2.ts, 20, 3))
|
||||
>robotA : Symbol(robotA, Decl(sourceMapValidationDestructuringForOfArrayBindingPatternDefaultValues2.ts, 6, 3))
|
||||
>robotB : Symbol(robotB, Decl(sourceMapValidationDestructuringForOfArrayBindingPatternDefaultValues2.ts, 7, 3))
|
||||
|
||||
console.log(nameA);
|
||||
>console.log : Symbol(log, Decl(sourceMapValidationDestructuringForOfArrayBindingPatternDefaultValues2.ts, 0, 22))
|
||||
>console : Symbol(console, Decl(sourceMapValidationDestructuringForOfArrayBindingPatternDefaultValues2.ts, 0, 11))
|
||||
>log : Symbol(log, Decl(sourceMapValidationDestructuringForOfArrayBindingPatternDefaultValues2.ts, 0, 22))
|
||||
>nameA : Symbol(nameA, Decl(sourceMapValidationDestructuringForOfArrayBindingPatternDefaultValues2.ts, 20, 3))
|
||||
}
|
||||
for ([, [
|
||||
primarySkillA = "primary",
|
||||
>primarySkillA : Symbol(primarySkillA, Decl(sourceMapValidationDestructuringForOfArrayBindingPatternDefaultValues2.ts, 20, 18))
|
||||
|
||||
secondarySkillA = "secondary"
|
||||
>secondarySkillA : Symbol(secondarySkillA, Decl(sourceMapValidationDestructuringForOfArrayBindingPatternDefaultValues2.ts, 20, 41))
|
||||
|
||||
] = ["skill1", "skill2"]] of multiRobots) {
|
||||
>multiRobots : Symbol(multiRobots, Decl(sourceMapValidationDestructuringForOfArrayBindingPatternDefaultValues2.ts, 15, 3))
|
||||
|
||||
console.log(primarySkillA);
|
||||
>console.log : Symbol(log, Decl(sourceMapValidationDestructuringForOfArrayBindingPatternDefaultValues2.ts, 0, 22))
|
||||
>console : Symbol(console, Decl(sourceMapValidationDestructuringForOfArrayBindingPatternDefaultValues2.ts, 0, 11))
|
||||
>log : Symbol(log, Decl(sourceMapValidationDestructuringForOfArrayBindingPatternDefaultValues2.ts, 0, 22))
|
||||
>primarySkillA : Symbol(primarySkillA, Decl(sourceMapValidationDestructuringForOfArrayBindingPatternDefaultValues2.ts, 20, 18))
|
||||
}
|
||||
for ([, [
|
||||
primarySkillA = "primary",
|
||||
>primarySkillA : Symbol(primarySkillA, Decl(sourceMapValidationDestructuringForOfArrayBindingPatternDefaultValues2.ts, 20, 18))
|
||||
|
||||
secondarySkillA = "secondary"
|
||||
>secondarySkillA : Symbol(secondarySkillA, Decl(sourceMapValidationDestructuringForOfArrayBindingPatternDefaultValues2.ts, 20, 41))
|
||||
|
||||
] = ["skill1", "skill2"]] of getMultiRobots()) {
|
||||
>getMultiRobots : Symbol(getMultiRobots, Decl(sourceMapValidationDestructuringForOfArrayBindingPatternDefaultValues2.ts, 15, 45))
|
||||
|
||||
console.log(primarySkillA);
|
||||
>console.log : Symbol(log, Decl(sourceMapValidationDestructuringForOfArrayBindingPatternDefaultValues2.ts, 0, 22))
|
||||
>console : Symbol(console, Decl(sourceMapValidationDestructuringForOfArrayBindingPatternDefaultValues2.ts, 0, 11))
|
||||
>log : Symbol(log, Decl(sourceMapValidationDestructuringForOfArrayBindingPatternDefaultValues2.ts, 0, 22))
|
||||
>primarySkillA : Symbol(primarySkillA, Decl(sourceMapValidationDestructuringForOfArrayBindingPatternDefaultValues2.ts, 20, 18))
|
||||
}
|
||||
for ([, [
|
||||
primarySkillA = "primary",
|
||||
>primarySkillA : Symbol(primarySkillA, Decl(sourceMapValidationDestructuringForOfArrayBindingPatternDefaultValues2.ts, 20, 18))
|
||||
|
||||
secondarySkillA = "secondary"
|
||||
>secondarySkillA : Symbol(secondarySkillA, Decl(sourceMapValidationDestructuringForOfArrayBindingPatternDefaultValues2.ts, 20, 41))
|
||||
|
||||
] = ["skill1", "skill2"]] of [multiRobotA, multiRobotB]) {
|
||||
>multiRobotA : Symbol(multiRobotA, Decl(sourceMapValidationDestructuringForOfArrayBindingPatternDefaultValues2.ts, 13, 3))
|
||||
>multiRobotB : Symbol(multiRobotB, Decl(sourceMapValidationDestructuringForOfArrayBindingPatternDefaultValues2.ts, 14, 3))
|
||||
|
||||
console.log(primarySkillA);
|
||||
>console.log : Symbol(log, Decl(sourceMapValidationDestructuringForOfArrayBindingPatternDefaultValues2.ts, 0, 22))
|
||||
>console : Symbol(console, Decl(sourceMapValidationDestructuringForOfArrayBindingPatternDefaultValues2.ts, 0, 11))
|
||||
>log : Symbol(log, Decl(sourceMapValidationDestructuringForOfArrayBindingPatternDefaultValues2.ts, 0, 22))
|
||||
>primarySkillA : Symbol(primarySkillA, Decl(sourceMapValidationDestructuringForOfArrayBindingPatternDefaultValues2.ts, 20, 18))
|
||||
}
|
||||
|
||||
for ([numberB = -1] of robots) {
|
||||
>numberB : Symbol(numberB, Decl(sourceMapValidationDestructuringForOfArrayBindingPatternDefaultValues2.ts, 21, 3))
|
||||
>robots : Symbol(robots, Decl(sourceMapValidationDestructuringForOfArrayBindingPatternDefaultValues2.ts, 8, 3))
|
||||
|
||||
console.log(numberB);
|
||||
>console.log : Symbol(log, Decl(sourceMapValidationDestructuringForOfArrayBindingPatternDefaultValues2.ts, 0, 22))
|
||||
>console : Symbol(console, Decl(sourceMapValidationDestructuringForOfArrayBindingPatternDefaultValues2.ts, 0, 11))
|
||||
>log : Symbol(log, Decl(sourceMapValidationDestructuringForOfArrayBindingPatternDefaultValues2.ts, 0, 22))
|
||||
>numberB : Symbol(numberB, Decl(sourceMapValidationDestructuringForOfArrayBindingPatternDefaultValues2.ts, 21, 3))
|
||||
}
|
||||
for ([numberB = -1] of getRobots()) {
|
||||
>numberB : Symbol(numberB, Decl(sourceMapValidationDestructuringForOfArrayBindingPatternDefaultValues2.ts, 21, 3))
|
||||
>getRobots : Symbol(getRobots, Decl(sourceMapValidationDestructuringForOfArrayBindingPatternDefaultValues2.ts, 8, 30))
|
||||
|
||||
console.log(numberB);
|
||||
>console.log : Symbol(log, Decl(sourceMapValidationDestructuringForOfArrayBindingPatternDefaultValues2.ts, 0, 22))
|
||||
>console : Symbol(console, Decl(sourceMapValidationDestructuringForOfArrayBindingPatternDefaultValues2.ts, 0, 11))
|
||||
>log : Symbol(log, Decl(sourceMapValidationDestructuringForOfArrayBindingPatternDefaultValues2.ts, 0, 22))
|
||||
>numberB : Symbol(numberB, Decl(sourceMapValidationDestructuringForOfArrayBindingPatternDefaultValues2.ts, 21, 3))
|
||||
}
|
||||
for ([numberB = -1] of [robotA, robotB]) {
|
||||
>numberB : Symbol(numberB, Decl(sourceMapValidationDestructuringForOfArrayBindingPatternDefaultValues2.ts, 21, 3))
|
||||
>robotA : Symbol(robotA, Decl(sourceMapValidationDestructuringForOfArrayBindingPatternDefaultValues2.ts, 6, 3))
|
||||
>robotB : Symbol(robotB, Decl(sourceMapValidationDestructuringForOfArrayBindingPatternDefaultValues2.ts, 7, 3))
|
||||
|
||||
console.log(numberB);
|
||||
>console.log : Symbol(log, Decl(sourceMapValidationDestructuringForOfArrayBindingPatternDefaultValues2.ts, 0, 22))
|
||||
>console : Symbol(console, Decl(sourceMapValidationDestructuringForOfArrayBindingPatternDefaultValues2.ts, 0, 11))
|
||||
>log : Symbol(log, Decl(sourceMapValidationDestructuringForOfArrayBindingPatternDefaultValues2.ts, 0, 22))
|
||||
>numberB : Symbol(numberB, Decl(sourceMapValidationDestructuringForOfArrayBindingPatternDefaultValues2.ts, 21, 3))
|
||||
}
|
||||
for ([nameB = "noName"] of multiRobots) {
|
||||
>nameB : Symbol(nameB, Decl(sourceMapValidationDestructuringForOfArrayBindingPatternDefaultValues2.ts, 21, 20))
|
||||
>multiRobots : Symbol(multiRobots, Decl(sourceMapValidationDestructuringForOfArrayBindingPatternDefaultValues2.ts, 15, 3))
|
||||
|
||||
console.log(nameB);
|
||||
>console.log : Symbol(log, Decl(sourceMapValidationDestructuringForOfArrayBindingPatternDefaultValues2.ts, 0, 22))
|
||||
>console : Symbol(console, Decl(sourceMapValidationDestructuringForOfArrayBindingPatternDefaultValues2.ts, 0, 11))
|
||||
>log : Symbol(log, Decl(sourceMapValidationDestructuringForOfArrayBindingPatternDefaultValues2.ts, 0, 22))
|
||||
>nameB : Symbol(nameB, Decl(sourceMapValidationDestructuringForOfArrayBindingPatternDefaultValues2.ts, 21, 20))
|
||||
}
|
||||
for ([nameB = "noName"] of getMultiRobots()) {
|
||||
>nameB : Symbol(nameB, Decl(sourceMapValidationDestructuringForOfArrayBindingPatternDefaultValues2.ts, 21, 20))
|
||||
>getMultiRobots : Symbol(getMultiRobots, Decl(sourceMapValidationDestructuringForOfArrayBindingPatternDefaultValues2.ts, 15, 45))
|
||||
|
||||
console.log(nameB);
|
||||
>console.log : Symbol(log, Decl(sourceMapValidationDestructuringForOfArrayBindingPatternDefaultValues2.ts, 0, 22))
|
||||
>console : Symbol(console, Decl(sourceMapValidationDestructuringForOfArrayBindingPatternDefaultValues2.ts, 0, 11))
|
||||
>log : Symbol(log, Decl(sourceMapValidationDestructuringForOfArrayBindingPatternDefaultValues2.ts, 0, 22))
|
||||
>nameB : Symbol(nameB, Decl(sourceMapValidationDestructuringForOfArrayBindingPatternDefaultValues2.ts, 21, 20))
|
||||
}
|
||||
for ([nameB = "noName"] of [multiRobotA, multiRobotB]) {
|
||||
>nameB : Symbol(nameB, Decl(sourceMapValidationDestructuringForOfArrayBindingPatternDefaultValues2.ts, 21, 20))
|
||||
>multiRobotA : Symbol(multiRobotA, Decl(sourceMapValidationDestructuringForOfArrayBindingPatternDefaultValues2.ts, 13, 3))
|
||||
>multiRobotB : Symbol(multiRobotB, Decl(sourceMapValidationDestructuringForOfArrayBindingPatternDefaultValues2.ts, 14, 3))
|
||||
|
||||
console.log(nameB);
|
||||
>console.log : Symbol(log, Decl(sourceMapValidationDestructuringForOfArrayBindingPatternDefaultValues2.ts, 0, 22))
|
||||
>console : Symbol(console, Decl(sourceMapValidationDestructuringForOfArrayBindingPatternDefaultValues2.ts, 0, 11))
|
||||
>log : Symbol(log, Decl(sourceMapValidationDestructuringForOfArrayBindingPatternDefaultValues2.ts, 0, 22))
|
||||
>nameB : Symbol(nameB, Decl(sourceMapValidationDestructuringForOfArrayBindingPatternDefaultValues2.ts, 21, 20))
|
||||
}
|
||||
|
||||
for ([numberA2 = -1, nameA2 = "noName", skillA2 = "skill"] of robots) {
|
||||
>numberA2 : Symbol(numberA2, Decl(sourceMapValidationDestructuringForOfArrayBindingPatternDefaultValues2.ts, 22, 3))
|
||||
>nameA2 : Symbol(nameA2, Decl(sourceMapValidationDestructuringForOfArrayBindingPatternDefaultValues2.ts, 22, 21))
|
||||
>skillA2 : Symbol(skillA2, Decl(sourceMapValidationDestructuringForOfArrayBindingPatternDefaultValues2.ts, 22, 37))
|
||||
>robots : Symbol(robots, Decl(sourceMapValidationDestructuringForOfArrayBindingPatternDefaultValues2.ts, 8, 3))
|
||||
|
||||
console.log(nameA2);
|
||||
>console.log : Symbol(log, Decl(sourceMapValidationDestructuringForOfArrayBindingPatternDefaultValues2.ts, 0, 22))
|
||||
>console : Symbol(console, Decl(sourceMapValidationDestructuringForOfArrayBindingPatternDefaultValues2.ts, 0, 11))
|
||||
>log : Symbol(log, Decl(sourceMapValidationDestructuringForOfArrayBindingPatternDefaultValues2.ts, 0, 22))
|
||||
>nameA2 : Symbol(nameA2, Decl(sourceMapValidationDestructuringForOfArrayBindingPatternDefaultValues2.ts, 22, 21))
|
||||
}
|
||||
for ([numberA2 = -1, nameA2 = "noName", skillA2 = "skill"] of getRobots()) {
|
||||
>numberA2 : Symbol(numberA2, Decl(sourceMapValidationDestructuringForOfArrayBindingPatternDefaultValues2.ts, 22, 3))
|
||||
>nameA2 : Symbol(nameA2, Decl(sourceMapValidationDestructuringForOfArrayBindingPatternDefaultValues2.ts, 22, 21))
|
||||
>skillA2 : Symbol(skillA2, Decl(sourceMapValidationDestructuringForOfArrayBindingPatternDefaultValues2.ts, 22, 37))
|
||||
>getRobots : Symbol(getRobots, Decl(sourceMapValidationDestructuringForOfArrayBindingPatternDefaultValues2.ts, 8, 30))
|
||||
|
||||
console.log(nameA2);
|
||||
>console.log : Symbol(log, Decl(sourceMapValidationDestructuringForOfArrayBindingPatternDefaultValues2.ts, 0, 22))
|
||||
>console : Symbol(console, Decl(sourceMapValidationDestructuringForOfArrayBindingPatternDefaultValues2.ts, 0, 11))
|
||||
>log : Symbol(log, Decl(sourceMapValidationDestructuringForOfArrayBindingPatternDefaultValues2.ts, 0, 22))
|
||||
>nameA2 : Symbol(nameA2, Decl(sourceMapValidationDestructuringForOfArrayBindingPatternDefaultValues2.ts, 22, 21))
|
||||
}
|
||||
for ([numberA2 = -1, nameA2 = "noName", skillA2 = "skill"] of [robotA, robotB]) {
|
||||
>numberA2 : Symbol(numberA2, Decl(sourceMapValidationDestructuringForOfArrayBindingPatternDefaultValues2.ts, 22, 3))
|
||||
>nameA2 : Symbol(nameA2, Decl(sourceMapValidationDestructuringForOfArrayBindingPatternDefaultValues2.ts, 22, 21))
|
||||
>skillA2 : Symbol(skillA2, Decl(sourceMapValidationDestructuringForOfArrayBindingPatternDefaultValues2.ts, 22, 37))
|
||||
>robotA : Symbol(robotA, Decl(sourceMapValidationDestructuringForOfArrayBindingPatternDefaultValues2.ts, 6, 3))
|
||||
>robotB : Symbol(robotB, Decl(sourceMapValidationDestructuringForOfArrayBindingPatternDefaultValues2.ts, 7, 3))
|
||||
|
||||
console.log(nameA2);
|
||||
>console.log : Symbol(log, Decl(sourceMapValidationDestructuringForOfArrayBindingPatternDefaultValues2.ts, 0, 22))
|
||||
>console : Symbol(console, Decl(sourceMapValidationDestructuringForOfArrayBindingPatternDefaultValues2.ts, 0, 11))
|
||||
>log : Symbol(log, Decl(sourceMapValidationDestructuringForOfArrayBindingPatternDefaultValues2.ts, 0, 22))
|
||||
>nameA2 : Symbol(nameA2, Decl(sourceMapValidationDestructuringForOfArrayBindingPatternDefaultValues2.ts, 22, 21))
|
||||
}
|
||||
for ([nameMA = "noName", [
|
||||
>nameMA : Symbol(nameMA, Decl(sourceMapValidationDestructuringForOfArrayBindingPatternDefaultValues2.ts, 22, 54))
|
||||
|
||||
primarySkillA = "primary",
|
||||
>primarySkillA : Symbol(primarySkillA, Decl(sourceMapValidationDestructuringForOfArrayBindingPatternDefaultValues2.ts, 20, 18))
|
||||
|
||||
secondarySkillA = "secondary"
|
||||
>secondarySkillA : Symbol(secondarySkillA, Decl(sourceMapValidationDestructuringForOfArrayBindingPatternDefaultValues2.ts, 20, 41))
|
||||
|
||||
] = ["skill1", "skill2"]] of multiRobots) {
|
||||
>multiRobots : Symbol(multiRobots, Decl(sourceMapValidationDestructuringForOfArrayBindingPatternDefaultValues2.ts, 15, 3))
|
||||
|
||||
console.log(nameMA);
|
||||
>console.log : Symbol(log, Decl(sourceMapValidationDestructuringForOfArrayBindingPatternDefaultValues2.ts, 0, 22))
|
||||
>console : Symbol(console, Decl(sourceMapValidationDestructuringForOfArrayBindingPatternDefaultValues2.ts, 0, 11))
|
||||
>log : Symbol(log, Decl(sourceMapValidationDestructuringForOfArrayBindingPatternDefaultValues2.ts, 0, 22))
|
||||
>nameMA : Symbol(nameMA, Decl(sourceMapValidationDestructuringForOfArrayBindingPatternDefaultValues2.ts, 22, 54))
|
||||
}
|
||||
for ([nameMA = "noName", [
|
||||
>nameMA : Symbol(nameMA, Decl(sourceMapValidationDestructuringForOfArrayBindingPatternDefaultValues2.ts, 22, 54))
|
||||
|
||||
primarySkillA = "primary",
|
||||
>primarySkillA : Symbol(primarySkillA, Decl(sourceMapValidationDestructuringForOfArrayBindingPatternDefaultValues2.ts, 20, 18))
|
||||
|
||||
secondarySkillA = "secondary"
|
||||
>secondarySkillA : Symbol(secondarySkillA, Decl(sourceMapValidationDestructuringForOfArrayBindingPatternDefaultValues2.ts, 20, 41))
|
||||
|
||||
] = ["skill1", "skill2"]] of getMultiRobots()) {
|
||||
>getMultiRobots : Symbol(getMultiRobots, Decl(sourceMapValidationDestructuringForOfArrayBindingPatternDefaultValues2.ts, 15, 45))
|
||||
|
||||
console.log(nameMA);
|
||||
>console.log : Symbol(log, Decl(sourceMapValidationDestructuringForOfArrayBindingPatternDefaultValues2.ts, 0, 22))
|
||||
>console : Symbol(console, Decl(sourceMapValidationDestructuringForOfArrayBindingPatternDefaultValues2.ts, 0, 11))
|
||||
>log : Symbol(log, Decl(sourceMapValidationDestructuringForOfArrayBindingPatternDefaultValues2.ts, 0, 22))
|
||||
>nameMA : Symbol(nameMA, Decl(sourceMapValidationDestructuringForOfArrayBindingPatternDefaultValues2.ts, 22, 54))
|
||||
}
|
||||
for ([nameMA = "noName", [
|
||||
>nameMA : Symbol(nameMA, Decl(sourceMapValidationDestructuringForOfArrayBindingPatternDefaultValues2.ts, 22, 54))
|
||||
|
||||
primarySkillA = "primary",
|
||||
>primarySkillA : Symbol(primarySkillA, Decl(sourceMapValidationDestructuringForOfArrayBindingPatternDefaultValues2.ts, 20, 18))
|
||||
|
||||
secondarySkillA = "secondary"
|
||||
>secondarySkillA : Symbol(secondarySkillA, Decl(sourceMapValidationDestructuringForOfArrayBindingPatternDefaultValues2.ts, 20, 41))
|
||||
|
||||
] = ["skill1", "skill2"]] of [multiRobotA, multiRobotB]) {
|
||||
>multiRobotA : Symbol(multiRobotA, Decl(sourceMapValidationDestructuringForOfArrayBindingPatternDefaultValues2.ts, 13, 3))
|
||||
>multiRobotB : Symbol(multiRobotB, Decl(sourceMapValidationDestructuringForOfArrayBindingPatternDefaultValues2.ts, 14, 3))
|
||||
|
||||
console.log(nameMA);
|
||||
>console.log : Symbol(log, Decl(sourceMapValidationDestructuringForOfArrayBindingPatternDefaultValues2.ts, 0, 22))
|
||||
>console : Symbol(console, Decl(sourceMapValidationDestructuringForOfArrayBindingPatternDefaultValues2.ts, 0, 11))
|
||||
>log : Symbol(log, Decl(sourceMapValidationDestructuringForOfArrayBindingPatternDefaultValues2.ts, 0, 22))
|
||||
>nameMA : Symbol(nameMA, Decl(sourceMapValidationDestructuringForOfArrayBindingPatternDefaultValues2.ts, 22, 54))
|
||||
}
|
||||
|
||||
for ([numberA3 = -1, ...robotAInfo] of robots) {
|
||||
>numberA3 : Symbol(numberA3, Decl(sourceMapValidationDestructuringForOfArrayBindingPatternDefaultValues2.ts, 23, 3))
|
||||
>robotAInfo : Symbol(robotAInfo, Decl(sourceMapValidationDestructuringForOfArrayBindingPatternDefaultValues2.ts, 23, 21))
|
||||
>robots : Symbol(robots, Decl(sourceMapValidationDestructuringForOfArrayBindingPatternDefaultValues2.ts, 8, 3))
|
||||
|
||||
console.log(numberA3);
|
||||
>console.log : Symbol(log, Decl(sourceMapValidationDestructuringForOfArrayBindingPatternDefaultValues2.ts, 0, 22))
|
||||
>console : Symbol(console, Decl(sourceMapValidationDestructuringForOfArrayBindingPatternDefaultValues2.ts, 0, 11))
|
||||
>log : Symbol(log, Decl(sourceMapValidationDestructuringForOfArrayBindingPatternDefaultValues2.ts, 0, 22))
|
||||
>numberA3 : Symbol(numberA3, Decl(sourceMapValidationDestructuringForOfArrayBindingPatternDefaultValues2.ts, 23, 3))
|
||||
}
|
||||
for ([numberA3 = -1, ...robotAInfo] of getRobots()) {
|
||||
>numberA3 : Symbol(numberA3, Decl(sourceMapValidationDestructuringForOfArrayBindingPatternDefaultValues2.ts, 23, 3))
|
||||
>robotAInfo : Symbol(robotAInfo, Decl(sourceMapValidationDestructuringForOfArrayBindingPatternDefaultValues2.ts, 23, 21))
|
||||
>getRobots : Symbol(getRobots, Decl(sourceMapValidationDestructuringForOfArrayBindingPatternDefaultValues2.ts, 8, 30))
|
||||
|
||||
console.log(numberA3);
|
||||
>console.log : Symbol(log, Decl(sourceMapValidationDestructuringForOfArrayBindingPatternDefaultValues2.ts, 0, 22))
|
||||
>console : Symbol(console, Decl(sourceMapValidationDestructuringForOfArrayBindingPatternDefaultValues2.ts, 0, 11))
|
||||
>log : Symbol(log, Decl(sourceMapValidationDestructuringForOfArrayBindingPatternDefaultValues2.ts, 0, 22))
|
||||
>numberA3 : Symbol(numberA3, Decl(sourceMapValidationDestructuringForOfArrayBindingPatternDefaultValues2.ts, 23, 3))
|
||||
}
|
||||
for ([numberA3 = -1, ...robotAInfo] of [robotA, robotB]) {
|
||||
>numberA3 : Symbol(numberA3, Decl(sourceMapValidationDestructuringForOfArrayBindingPatternDefaultValues2.ts, 23, 3))
|
||||
>robotAInfo : Symbol(robotAInfo, Decl(sourceMapValidationDestructuringForOfArrayBindingPatternDefaultValues2.ts, 23, 21))
|
||||
>robotA : Symbol(robotA, Decl(sourceMapValidationDestructuringForOfArrayBindingPatternDefaultValues2.ts, 6, 3))
|
||||
>robotB : Symbol(robotB, Decl(sourceMapValidationDestructuringForOfArrayBindingPatternDefaultValues2.ts, 7, 3))
|
||||
|
||||
console.log(numberA3);
|
||||
>console.log : Symbol(log, Decl(sourceMapValidationDestructuringForOfArrayBindingPatternDefaultValues2.ts, 0, 22))
|
||||
>console : Symbol(console, Decl(sourceMapValidationDestructuringForOfArrayBindingPatternDefaultValues2.ts, 0, 11))
|
||||
>log : Symbol(log, Decl(sourceMapValidationDestructuringForOfArrayBindingPatternDefaultValues2.ts, 0, 22))
|
||||
>numberA3 : Symbol(numberA3, Decl(sourceMapValidationDestructuringForOfArrayBindingPatternDefaultValues2.ts, 23, 3))
|
||||
}
|
||||
@@ -0,0 +1,544 @@
|
||||
=== tests/cases/compiler/sourceMapValidationDestructuringForOfArrayBindingPatternDefaultValues2.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]][]
|
||||
}
|
||||
|
||||
let nameA: string, primarySkillA: string, secondarySkillA: string;
|
||||
>nameA : string
|
||||
>primarySkillA : string
|
||||
>secondarySkillA : string
|
||||
|
||||
let numberB: number, nameB: string;
|
||||
>numberB : number
|
||||
>nameB : string
|
||||
|
||||
let numberA2: number, nameA2: string, skillA2: string, nameMA: string;
|
||||
>numberA2 : number
|
||||
>nameA2 : string
|
||||
>skillA2 : string
|
||||
>nameMA : string
|
||||
|
||||
let numberA3: number, robotAInfo: (number | string)[], multiRobotAInfo: (string | [string, string])[];
|
||||
>numberA3 : number
|
||||
>robotAInfo : (number | string)[]
|
||||
>multiRobotAInfo : (string | [string, string])[]
|
||||
|
||||
for ([, nameA = "noName"] of robots) {
|
||||
>[, nameA = "noName"] : string[]
|
||||
> : undefined
|
||||
>nameA = "noName" : string
|
||||
>nameA : string
|
||||
>"noName" : 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 ([, nameA = "noName"] of getRobots()) {
|
||||
>[, nameA = "noName"] : string[]
|
||||
> : undefined
|
||||
>nameA = "noName" : string
|
||||
>nameA : string
|
||||
>"noName" : 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 ([, nameA = "noName"] of [robotA, robotB]) {
|
||||
>[, nameA = "noName"] : string[]
|
||||
> : undefined
|
||||
>nameA = "noName" : string
|
||||
>nameA : string
|
||||
>"noName" : 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 ([, [
|
||||
>[, [ primarySkillA = "primary", secondarySkillA = "secondary"] = ["skill1", "skill2"]] : [string, string][]
|
||||
> : undefined
|
||||
>[ primarySkillA = "primary", secondarySkillA = "secondary"] = ["skill1", "skill2"] : [string, string]
|
||||
>[ primarySkillA = "primary", secondarySkillA = "secondary"] : [string, string]
|
||||
|
||||
primarySkillA = "primary",
|
||||
>primarySkillA = "primary" : string
|
||||
>primarySkillA : string
|
||||
>"primary" : string
|
||||
|
||||
secondarySkillA = "secondary"
|
||||
>secondarySkillA = "secondary" : string
|
||||
>secondarySkillA : string
|
||||
>"secondary" : string
|
||||
|
||||
] = ["skill1", "skill2"]] of multiRobots) {
|
||||
>["skill1", "skill2"] : [string, string]
|
||||
>"skill1" : string
|
||||
>"skill2" : 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 ([, [
|
||||
>[, [ primarySkillA = "primary", secondarySkillA = "secondary"] = ["skill1", "skill2"]] : [string, string][]
|
||||
> : undefined
|
||||
>[ primarySkillA = "primary", secondarySkillA = "secondary"] = ["skill1", "skill2"] : [string, string]
|
||||
>[ primarySkillA = "primary", secondarySkillA = "secondary"] : [string, string]
|
||||
|
||||
primarySkillA = "primary",
|
||||
>primarySkillA = "primary" : string
|
||||
>primarySkillA : string
|
||||
>"primary" : string
|
||||
|
||||
secondarySkillA = "secondary"
|
||||
>secondarySkillA = "secondary" : string
|
||||
>secondarySkillA : string
|
||||
>"secondary" : string
|
||||
|
||||
] = ["skill1", "skill2"]] of getMultiRobots()) {
|
||||
>["skill1", "skill2"] : [string, string]
|
||||
>"skill1" : string
|
||||
>"skill2" : 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 ([, [
|
||||
>[, [ primarySkillA = "primary", secondarySkillA = "secondary"] = ["skill1", "skill2"]] : [string, string][]
|
||||
> : undefined
|
||||
>[ primarySkillA = "primary", secondarySkillA = "secondary"] = ["skill1", "skill2"] : [string, string]
|
||||
>[ primarySkillA = "primary", secondarySkillA = "secondary"] : [string, string]
|
||||
|
||||
primarySkillA = "primary",
|
||||
>primarySkillA = "primary" : string
|
||||
>primarySkillA : string
|
||||
>"primary" : string
|
||||
|
||||
secondarySkillA = "secondary"
|
||||
>secondarySkillA = "secondary" : string
|
||||
>secondarySkillA : string
|
||||
>"secondary" : string
|
||||
|
||||
] = ["skill1", "skill2"]] of [multiRobotA, multiRobotB]) {
|
||||
>["skill1", "skill2"] : [string, string]
|
||||
>"skill1" : string
|
||||
>"skill2" : 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 ([numberB = -1] of robots) {
|
||||
>[numberB = -1] : number[]
|
||||
>numberB = -1 : number
|
||||
>numberB : number
|
||||
>-1 : number
|
||||
>1 : 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 ([numberB = -1] of getRobots()) {
|
||||
>[numberB = -1] : number[]
|
||||
>numberB = -1 : number
|
||||
>numberB : number
|
||||
>-1 : number
|
||||
>1 : 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 ([numberB = -1] of [robotA, robotB]) {
|
||||
>[numberB = -1] : number[]
|
||||
>numberB = -1 : number
|
||||
>numberB : number
|
||||
>-1 : number
|
||||
>1 : 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 ([nameB = "noName"] of multiRobots) {
|
||||
>[nameB = "noName"] : string[]
|
||||
>nameB = "noName" : string
|
||||
>nameB : string
|
||||
>"noName" : 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 ([nameB = "noName"] of getMultiRobots()) {
|
||||
>[nameB = "noName"] : string[]
|
||||
>nameB = "noName" : string
|
||||
>nameB : string
|
||||
>"noName" : 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 ([nameB = "noName"] of [multiRobotA, multiRobotB]) {
|
||||
>[nameB = "noName"] : string[]
|
||||
>nameB = "noName" : string
|
||||
>nameB : string
|
||||
>"noName" : 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 ([numberA2 = -1, nameA2 = "noName", skillA2 = "skill"] of robots) {
|
||||
>[numberA2 = -1, nameA2 = "noName", skillA2 = "skill"] : (number | string)[]
|
||||
>numberA2 = -1 : number
|
||||
>numberA2 : number
|
||||
>-1 : number
|
||||
>1 : number
|
||||
>nameA2 = "noName" : string
|
||||
>nameA2 : string
|
||||
>"noName" : string
|
||||
>skillA2 = "skill" : string
|
||||
>skillA2 : string
|
||||
>"skill" : 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 ([numberA2 = -1, nameA2 = "noName", skillA2 = "skill"] of getRobots()) {
|
||||
>[numberA2 = -1, nameA2 = "noName", skillA2 = "skill"] : (number | string)[]
|
||||
>numberA2 = -1 : number
|
||||
>numberA2 : number
|
||||
>-1 : number
|
||||
>1 : number
|
||||
>nameA2 = "noName" : string
|
||||
>nameA2 : string
|
||||
>"noName" : string
|
||||
>skillA2 = "skill" : string
|
||||
>skillA2 : string
|
||||
>"skill" : 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 ([numberA2 = -1, nameA2 = "noName", skillA2 = "skill"] of [robotA, robotB]) {
|
||||
>[numberA2 = -1, nameA2 = "noName", skillA2 = "skill"] : (number | string)[]
|
||||
>numberA2 = -1 : number
|
||||
>numberA2 : number
|
||||
>-1 : number
|
||||
>1 : number
|
||||
>nameA2 = "noName" : string
|
||||
>nameA2 : string
|
||||
>"noName" : string
|
||||
>skillA2 = "skill" : string
|
||||
>skillA2 : string
|
||||
>"skill" : 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 ([nameMA = "noName", [
|
||||
>[nameMA = "noName", [ primarySkillA = "primary", secondarySkillA = "secondary"] = ["skill1", "skill2"]] : (string | [string, string])[]
|
||||
>nameMA = "noName" : string
|
||||
>nameMA : string
|
||||
>"noName" : string
|
||||
>[ primarySkillA = "primary", secondarySkillA = "secondary"] = ["skill1", "skill2"] : [string, string]
|
||||
>[ primarySkillA = "primary", secondarySkillA = "secondary"] : [string, string]
|
||||
|
||||
primarySkillA = "primary",
|
||||
>primarySkillA = "primary" : string
|
||||
>primarySkillA : string
|
||||
>"primary" : string
|
||||
|
||||
secondarySkillA = "secondary"
|
||||
>secondarySkillA = "secondary" : string
|
||||
>secondarySkillA : string
|
||||
>"secondary" : string
|
||||
|
||||
] = ["skill1", "skill2"]] of multiRobots) {
|
||||
>["skill1", "skill2"] : [string, string]
|
||||
>"skill1" : string
|
||||
>"skill2" : 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 ([nameMA = "noName", [
|
||||
>[nameMA = "noName", [ primarySkillA = "primary", secondarySkillA = "secondary"] = ["skill1", "skill2"]] : (string | [string, string])[]
|
||||
>nameMA = "noName" : string
|
||||
>nameMA : string
|
||||
>"noName" : string
|
||||
>[ primarySkillA = "primary", secondarySkillA = "secondary"] = ["skill1", "skill2"] : [string, string]
|
||||
>[ primarySkillA = "primary", secondarySkillA = "secondary"] : [string, string]
|
||||
|
||||
primarySkillA = "primary",
|
||||
>primarySkillA = "primary" : string
|
||||
>primarySkillA : string
|
||||
>"primary" : string
|
||||
|
||||
secondarySkillA = "secondary"
|
||||
>secondarySkillA = "secondary" : string
|
||||
>secondarySkillA : string
|
||||
>"secondary" : string
|
||||
|
||||
] = ["skill1", "skill2"]] of getMultiRobots()) {
|
||||
>["skill1", "skill2"] : [string, string]
|
||||
>"skill1" : string
|
||||
>"skill2" : 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 ([nameMA = "noName", [
|
||||
>[nameMA = "noName", [ primarySkillA = "primary", secondarySkillA = "secondary"] = ["skill1", "skill2"]] : (string | [string, string])[]
|
||||
>nameMA = "noName" : string
|
||||
>nameMA : string
|
||||
>"noName" : string
|
||||
>[ primarySkillA = "primary", secondarySkillA = "secondary"] = ["skill1", "skill2"] : [string, string]
|
||||
>[ primarySkillA = "primary", secondarySkillA = "secondary"] : [string, string]
|
||||
|
||||
primarySkillA = "primary",
|
||||
>primarySkillA = "primary" : string
|
||||
>primarySkillA : string
|
||||
>"primary" : string
|
||||
|
||||
secondarySkillA = "secondary"
|
||||
>secondarySkillA = "secondary" : string
|
||||
>secondarySkillA : string
|
||||
>"secondary" : string
|
||||
|
||||
] = ["skill1", "skill2"]] of [multiRobotA, multiRobotB]) {
|
||||
>["skill1", "skill2"] : [string, string]
|
||||
>"skill1" : string
|
||||
>"skill2" : 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 ([numberA3 = -1, ...robotAInfo] of robots) {
|
||||
>[numberA3 = -1, ...robotAInfo] : (number | string)[]
|
||||
>numberA3 = -1 : number
|
||||
>numberA3 : number
|
||||
>-1 : number
|
||||
>1 : number
|
||||
>...robotAInfo : number | string
|
||||
>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 ([numberA3 = -1, ...robotAInfo] of getRobots()) {
|
||||
>[numberA3 = -1, ...robotAInfo] : (number | string)[]
|
||||
>numberA3 = -1 : number
|
||||
>numberA3 : number
|
||||
>-1 : number
|
||||
>1 : number
|
||||
>...robotAInfo : number | string
|
||||
>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 ([numberA3 = -1, ...robotAInfo] of [robotA, robotB]) {
|
||||
>[numberA3 = -1, ...robotAInfo] : (number | string)[]
|
||||
>numberA3 = -1 : number
|
||||
>numberA3 : number
|
||||
>-1 : number
|
||||
>1 : number
|
||||
>...robotAInfo : number | string
|
||||
>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
|
||||
}
|
||||
@@ -0,0 +1,152 @@
|
||||
//// [sourceMapValidationDestructuringForOfObjectBindingPatternDefaultValues.ts]
|
||||
declare var console: {
|
||||
log(msg: any): void;
|
||||
}
|
||||
interface Robot {
|
||||
name: string;
|
||||
skill: string;
|
||||
}
|
||||
|
||||
interface MultiRobot {
|
||||
name: string;
|
||||
skills: {
|
||||
primary?: string;
|
||||
secondary?: string;
|
||||
};
|
||||
}
|
||||
|
||||
let robots: Robot[] = [{ name: "mower", skill: "mowing" }, { name: "trimmer", skill: "trimming" }];
|
||||
let multiRobots: MultiRobot[] = [{ name: "mower", skills: { primary: "mowing", secondary: "none" } },
|
||||
{ name: "trimmer", skills: { primary: "trimming", secondary: "edging" } }];
|
||||
|
||||
function getRobots() {
|
||||
return robots;
|
||||
}
|
||||
|
||||
function getMultiRobots() {
|
||||
return multiRobots;
|
||||
}
|
||||
|
||||
for (let {name: nameA = "noName" } of robots) {
|
||||
console.log(nameA);
|
||||
}
|
||||
for (let {name: nameA = "noName" } of getRobots()) {
|
||||
console.log(nameA);
|
||||
}
|
||||
for (let {name: nameA = "noName" } of [{ name: "mower", skill: "mowing" }, { name: "trimmer", skill: "trimming" }]) {
|
||||
console.log(nameA);
|
||||
}
|
||||
for (let { skills: { primary: primaryA = "primary", secondary: secondaryA = "secondary" } =
|
||||
{ primary: "nosKill", secondary: "noSkill" } } of multiRobots) {
|
||||
console.log(primaryA);
|
||||
}
|
||||
for (let { skills: { primary: primaryA = "primary", secondary: secondaryA = "secondary" } =
|
||||
{ primary: "nosKill", secondary: "noSkill" } } of getMultiRobots()) {
|
||||
console.log(primaryA);
|
||||
}
|
||||
for (let { skills: { primary: primaryA = "primary", secondary: secondaryA = "secondary" } =
|
||||
{ primary: "nosKill", secondary: "noSkill" } } of
|
||||
<MultiRobot[]>[{ name: "mower", skills: { primary: "mowing", secondary: "none" } },
|
||||
{ name: "trimmer", skills: { primary: "trimming", secondary: "edging" } }]) {
|
||||
console.log(primaryA);
|
||||
}
|
||||
|
||||
for (let {name: nameA = "noName", skill: skillA = "noSkill" } of robots) {
|
||||
console.log(nameA);
|
||||
}
|
||||
for (let {name: nameA = "noName", skill: skillA = "noSkill" } of getRobots()) {
|
||||
console.log(nameA);
|
||||
}
|
||||
for (let {name: nameA = "noName", skill: skillA = "noSkill" } of [{ name: "mower", skill: "mowing" }, { name: "trimmer", skill: "trimming" }]) {
|
||||
console.log(nameA);
|
||||
}
|
||||
for (let {
|
||||
name: nameA = "noName",
|
||||
skills: {
|
||||
primary: primaryA = "primary",
|
||||
secondary: secondaryA = "secondary"
|
||||
} = { primary: "noSkill", secondary: "noSkill" }
|
||||
} of multiRobots) {
|
||||
console.log(nameA);
|
||||
}
|
||||
for (let {
|
||||
name: nameA = "noName",
|
||||
skills: {
|
||||
primary: primaryA = "primary",
|
||||
secondary: secondaryA = "secondary"
|
||||
} = { primary: "noSkill", secondary: "noSkill" }
|
||||
} of getMultiRobots()) {
|
||||
console.log(nameA);
|
||||
}
|
||||
for (let {
|
||||
name: nameA = "noName",
|
||||
skills: {
|
||||
primary: primaryA = "primary",
|
||||
secondary: secondaryA = "secondary"
|
||||
} = { primary: "noSkill", secondary: "noSkill" }
|
||||
} of <MultiRobot[]>[{ name: "mower", skills: { primary: "mowing", secondary: "none" } },
|
||||
{ name: "trimmer", skills: { primary: "trimming", secondary: "edging" } }]) {
|
||||
console.log(nameA);
|
||||
}
|
||||
|
||||
//// [sourceMapValidationDestructuringForOfObjectBindingPatternDefaultValues.js]
|
||||
var robots = [{ name: "mower", skill: "mowing" }, { name: "trimmer", skill: "trimming" }];
|
||||
var multiRobots = [{ name: "mower", skills: { primary: "mowing", secondary: "none" } },
|
||||
{ name: "trimmer", skills: { primary: "trimming", secondary: "edging" } }];
|
||||
function getRobots() {
|
||||
return robots;
|
||||
}
|
||||
function getMultiRobots() {
|
||||
return multiRobots;
|
||||
}
|
||||
for (var _i = 0, robots_1 = robots; _i < robots_1.length; _i++) {
|
||||
var _a = robots_1[_i].name, nameA = _a === void 0 ? "noName" : _a;
|
||||
console.log(nameA);
|
||||
}
|
||||
for (var _b = 0, _c = getRobots(); _b < _c.length; _b++) {
|
||||
var _d = _c[_b].name, nameA = _d === void 0 ? "noName" : _d;
|
||||
console.log(nameA);
|
||||
}
|
||||
for (var _e = 0, _f = [{ name: "mower", skill: "mowing" }, { name: "trimmer", skill: "trimming" }]; _e < _f.length; _e++) {
|
||||
var _g = _f[_e].name, nameA = _g === void 0 ? "noName" : _g;
|
||||
console.log(nameA);
|
||||
}
|
||||
for (var _h = 0, multiRobots_1 = multiRobots; _h < multiRobots_1.length; _h++) {
|
||||
var _j = multiRobots_1[_h].skills, _k = _j === void 0 ? { primary: "nosKill", secondary: "noSkill" } : _j, _l = _k.primary, primaryA = _l === void 0 ? "primary" : _l, _m = _k.secondary, secondaryA = _m === void 0 ? "secondary" : _m;
|
||||
console.log(primaryA);
|
||||
}
|
||||
for (var _o = 0, _p = getMultiRobots(); _o < _p.length; _o++) {
|
||||
var _q = _p[_o].skills, _r = _q === void 0 ? { primary: "nosKill", secondary: "noSkill" } : _q, _s = _r.primary, primaryA = _s === void 0 ? "primary" : _s, _t = _r.secondary, secondaryA = _t === void 0 ? "secondary" : _t;
|
||||
console.log(primaryA);
|
||||
}
|
||||
for (var _u = 0, _v = [{ name: "mower", skills: { primary: "mowing", secondary: "none" } },
|
||||
{ name: "trimmer", skills: { primary: "trimming", secondary: "edging" } }]; _u < _v.length; _u++) {
|
||||
var _w = _v[_u].skills, _x = _w === void 0 ? { primary: "nosKill", secondary: "noSkill" } : _w, _y = _x.primary, primaryA = _y === void 0 ? "primary" : _y, _z = _x.secondary, secondaryA = _z === void 0 ? "secondary" : _z;
|
||||
console.log(primaryA);
|
||||
}
|
||||
for (var _0 = 0, robots_2 = robots; _0 < robots_2.length; _0++) {
|
||||
var _1 = robots_2[_0], _2 = _1.name, nameA = _2 === void 0 ? "noName" : _2, _3 = _1.skill, skillA = _3 === void 0 ? "noSkill" : _3;
|
||||
console.log(nameA);
|
||||
}
|
||||
for (var _4 = 0, _5 = getRobots(); _4 < _5.length; _4++) {
|
||||
var _6 = _5[_4], _7 = _6.name, nameA = _7 === void 0 ? "noName" : _7, _8 = _6.skill, skillA = _8 === void 0 ? "noSkill" : _8;
|
||||
console.log(nameA);
|
||||
}
|
||||
for (var _9 = 0, _10 = [{ name: "mower", skill: "mowing" }, { name: "trimmer", skill: "trimming" }]; _9 < _10.length; _9++) {
|
||||
var _11 = _10[_9], _12 = _11.name, nameA = _12 === void 0 ? "noName" : _12, _13 = _11.skill, skillA = _13 === void 0 ? "noSkill" : _13;
|
||||
console.log(nameA);
|
||||
}
|
||||
for (var _14 = 0, multiRobots_2 = multiRobots; _14 < multiRobots_2.length; _14++) {
|
||||
var _15 = multiRobots_2[_14], _16 = _15.name, nameA = _16 === void 0 ? "noName" : _16, _17 = _15.skills, _18 = _17 === void 0 ? { primary: "noSkill", secondary: "noSkill" } : _17, _19 = _18.primary, primaryA = _19 === void 0 ? "primary" : _19, _20 = _18.secondary, secondaryA = _20 === void 0 ? "secondary" : _20;
|
||||
console.log(nameA);
|
||||
}
|
||||
for (var _21 = 0, _22 = getMultiRobots(); _21 < _22.length; _21++) {
|
||||
var _23 = _22[_21], _24 = _23.name, nameA = _24 === void 0 ? "noName" : _24, _25 = _23.skills, _26 = _25 === void 0 ? { primary: "noSkill", secondary: "noSkill" } : _25, _27 = _26.primary, primaryA = _27 === void 0 ? "primary" : _27, _28 = _26.secondary, secondaryA = _28 === void 0 ? "secondary" : _28;
|
||||
console.log(nameA);
|
||||
}
|
||||
for (var _29 = 0, _30 = [{ name: "mower", skills: { primary: "mowing", secondary: "none" } },
|
||||
{ name: "trimmer", skills: { primary: "trimming", secondary: "edging" } }]; _29 < _30.length; _29++) {
|
||||
var _31 = _30[_29], _32 = _31.name, nameA = _32 === void 0 ? "noName" : _32, _33 = _31.skills, _34 = _33 === void 0 ? { primary: "noSkill", secondary: "noSkill" } : _33, _35 = _34.primary, primaryA = _35 === void 0 ? "primary" : _35, _36 = _34.secondary, secondaryA = _36 === void 0 ? "secondary" : _36;
|
||||
console.log(nameA);
|
||||
}
|
||||
//# sourceMappingURL=sourceMapValidationDestructuringForOfObjectBindingPatternDefaultValues.js.map
|
||||
@@ -0,0 +1,2 @@
|
||||
//// [sourceMapValidationDestructuringForOfObjectBindingPatternDefaultValues.js.map]
|
||||
{"version":3,"file":"sourceMapValidationDestructuringForOfObjectBindingPatternDefaultValues.js","sourceRoot":"","sources":["sourceMapValidationDestructuringForOfObjectBindingPatternDefaultValues.ts"],"names":[],"mappings":"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"}
|
||||
File diff suppressed because it is too large
Load Diff
@@ -0,0 +1,314 @@
|
||||
=== tests/cases/compiler/sourceMapValidationDestructuringForOfObjectBindingPatternDefaultValues.ts ===
|
||||
declare var console: {
|
||||
>console : Symbol(console, Decl(sourceMapValidationDestructuringForOfObjectBindingPatternDefaultValues.ts, 0, 11))
|
||||
|
||||
log(msg: any): void;
|
||||
>log : Symbol(log, Decl(sourceMapValidationDestructuringForOfObjectBindingPatternDefaultValues.ts, 0, 22))
|
||||
>msg : Symbol(msg, Decl(sourceMapValidationDestructuringForOfObjectBindingPatternDefaultValues.ts, 1, 8))
|
||||
}
|
||||
interface Robot {
|
||||
>Robot : Symbol(Robot, Decl(sourceMapValidationDestructuringForOfObjectBindingPatternDefaultValues.ts, 2, 1))
|
||||
|
||||
name: string;
|
||||
>name : Symbol(name, Decl(sourceMapValidationDestructuringForOfObjectBindingPatternDefaultValues.ts, 3, 17))
|
||||
|
||||
skill: string;
|
||||
>skill : Symbol(skill, Decl(sourceMapValidationDestructuringForOfObjectBindingPatternDefaultValues.ts, 4, 17))
|
||||
}
|
||||
|
||||
interface MultiRobot {
|
||||
>MultiRobot : Symbol(MultiRobot, Decl(sourceMapValidationDestructuringForOfObjectBindingPatternDefaultValues.ts, 6, 1))
|
||||
|
||||
name: string;
|
||||
>name : Symbol(name, Decl(sourceMapValidationDestructuringForOfObjectBindingPatternDefaultValues.ts, 8, 22))
|
||||
|
||||
skills: {
|
||||
>skills : Symbol(skills, Decl(sourceMapValidationDestructuringForOfObjectBindingPatternDefaultValues.ts, 9, 17))
|
||||
|
||||
primary?: string;
|
||||
>primary : Symbol(primary, Decl(sourceMapValidationDestructuringForOfObjectBindingPatternDefaultValues.ts, 10, 13))
|
||||
|
||||
secondary?: string;
|
||||
>secondary : Symbol(secondary, Decl(sourceMapValidationDestructuringForOfObjectBindingPatternDefaultValues.ts, 11, 25))
|
||||
|
||||
};
|
||||
}
|
||||
|
||||
let robots: Robot[] = [{ name: "mower", skill: "mowing" }, { name: "trimmer", skill: "trimming" }];
|
||||
>robots : Symbol(robots, Decl(sourceMapValidationDestructuringForOfObjectBindingPatternDefaultValues.ts, 16, 3))
|
||||
>Robot : Symbol(Robot, Decl(sourceMapValidationDestructuringForOfObjectBindingPatternDefaultValues.ts, 2, 1))
|
||||
>name : Symbol(name, Decl(sourceMapValidationDestructuringForOfObjectBindingPatternDefaultValues.ts, 16, 24))
|
||||
>skill : Symbol(skill, Decl(sourceMapValidationDestructuringForOfObjectBindingPatternDefaultValues.ts, 16, 39))
|
||||
>name : Symbol(name, Decl(sourceMapValidationDestructuringForOfObjectBindingPatternDefaultValues.ts, 16, 60))
|
||||
>skill : Symbol(skill, Decl(sourceMapValidationDestructuringForOfObjectBindingPatternDefaultValues.ts, 16, 77))
|
||||
|
||||
let multiRobots: MultiRobot[] = [{ name: "mower", skills: { primary: "mowing", secondary: "none" } },
|
||||
>multiRobots : Symbol(multiRobots, Decl(sourceMapValidationDestructuringForOfObjectBindingPatternDefaultValues.ts, 17, 3))
|
||||
>MultiRobot : Symbol(MultiRobot, Decl(sourceMapValidationDestructuringForOfObjectBindingPatternDefaultValues.ts, 6, 1))
|
||||
>name : Symbol(name, Decl(sourceMapValidationDestructuringForOfObjectBindingPatternDefaultValues.ts, 17, 34))
|
||||
>skills : Symbol(skills, Decl(sourceMapValidationDestructuringForOfObjectBindingPatternDefaultValues.ts, 17, 49))
|
||||
>primary : Symbol(primary, Decl(sourceMapValidationDestructuringForOfObjectBindingPatternDefaultValues.ts, 17, 59))
|
||||
>secondary : Symbol(secondary, Decl(sourceMapValidationDestructuringForOfObjectBindingPatternDefaultValues.ts, 17, 78))
|
||||
|
||||
{ name: "trimmer", skills: { primary: "trimming", secondary: "edging" } }];
|
||||
>name : Symbol(name, Decl(sourceMapValidationDestructuringForOfObjectBindingPatternDefaultValues.ts, 18, 5))
|
||||
>skills : Symbol(skills, Decl(sourceMapValidationDestructuringForOfObjectBindingPatternDefaultValues.ts, 18, 22))
|
||||
>primary : Symbol(primary, Decl(sourceMapValidationDestructuringForOfObjectBindingPatternDefaultValues.ts, 18, 32))
|
||||
>secondary : Symbol(secondary, Decl(sourceMapValidationDestructuringForOfObjectBindingPatternDefaultValues.ts, 18, 53))
|
||||
|
||||
function getRobots() {
|
||||
>getRobots : Symbol(getRobots, Decl(sourceMapValidationDestructuringForOfObjectBindingPatternDefaultValues.ts, 18, 79))
|
||||
|
||||
return robots;
|
||||
>robots : Symbol(robots, Decl(sourceMapValidationDestructuringForOfObjectBindingPatternDefaultValues.ts, 16, 3))
|
||||
}
|
||||
|
||||
function getMultiRobots() {
|
||||
>getMultiRobots : Symbol(getMultiRobots, Decl(sourceMapValidationDestructuringForOfObjectBindingPatternDefaultValues.ts, 22, 1))
|
||||
|
||||
return multiRobots;
|
||||
>multiRobots : Symbol(multiRobots, Decl(sourceMapValidationDestructuringForOfObjectBindingPatternDefaultValues.ts, 17, 3))
|
||||
}
|
||||
|
||||
for (let {name: nameA = "noName" } of robots) {
|
||||
>name : Symbol(Robot.name, Decl(sourceMapValidationDestructuringForOfObjectBindingPatternDefaultValues.ts, 3, 17))
|
||||
>nameA : Symbol(nameA, Decl(sourceMapValidationDestructuringForOfObjectBindingPatternDefaultValues.ts, 28, 10))
|
||||
>robots : Symbol(robots, Decl(sourceMapValidationDestructuringForOfObjectBindingPatternDefaultValues.ts, 16, 3))
|
||||
|
||||
console.log(nameA);
|
||||
>console.log : Symbol(log, Decl(sourceMapValidationDestructuringForOfObjectBindingPatternDefaultValues.ts, 0, 22))
|
||||
>console : Symbol(console, Decl(sourceMapValidationDestructuringForOfObjectBindingPatternDefaultValues.ts, 0, 11))
|
||||
>log : Symbol(log, Decl(sourceMapValidationDestructuringForOfObjectBindingPatternDefaultValues.ts, 0, 22))
|
||||
>nameA : Symbol(nameA, Decl(sourceMapValidationDestructuringForOfObjectBindingPatternDefaultValues.ts, 28, 10))
|
||||
}
|
||||
for (let {name: nameA = "noName" } of getRobots()) {
|
||||
>name : Symbol(Robot.name, Decl(sourceMapValidationDestructuringForOfObjectBindingPatternDefaultValues.ts, 3, 17))
|
||||
>nameA : Symbol(nameA, Decl(sourceMapValidationDestructuringForOfObjectBindingPatternDefaultValues.ts, 31, 10))
|
||||
>getRobots : Symbol(getRobots, Decl(sourceMapValidationDestructuringForOfObjectBindingPatternDefaultValues.ts, 18, 79))
|
||||
|
||||
console.log(nameA);
|
||||
>console.log : Symbol(log, Decl(sourceMapValidationDestructuringForOfObjectBindingPatternDefaultValues.ts, 0, 22))
|
||||
>console : Symbol(console, Decl(sourceMapValidationDestructuringForOfObjectBindingPatternDefaultValues.ts, 0, 11))
|
||||
>log : Symbol(log, Decl(sourceMapValidationDestructuringForOfObjectBindingPatternDefaultValues.ts, 0, 22))
|
||||
>nameA : Symbol(nameA, Decl(sourceMapValidationDestructuringForOfObjectBindingPatternDefaultValues.ts, 31, 10))
|
||||
}
|
||||
for (let {name: nameA = "noName" } of [{ name: "mower", skill: "mowing" }, { name: "trimmer", skill: "trimming" }]) {
|
||||
>name : Symbol(name, Decl(sourceMapValidationDestructuringForOfObjectBindingPatternDefaultValues.ts, 34, 40))
|
||||
>nameA : Symbol(nameA, Decl(sourceMapValidationDestructuringForOfObjectBindingPatternDefaultValues.ts, 34, 10))
|
||||
>name : Symbol(name, Decl(sourceMapValidationDestructuringForOfObjectBindingPatternDefaultValues.ts, 34, 40))
|
||||
>skill : Symbol(skill, Decl(sourceMapValidationDestructuringForOfObjectBindingPatternDefaultValues.ts, 34, 55))
|
||||
>name : Symbol(name, Decl(sourceMapValidationDestructuringForOfObjectBindingPatternDefaultValues.ts, 34, 76))
|
||||
>skill : Symbol(skill, Decl(sourceMapValidationDestructuringForOfObjectBindingPatternDefaultValues.ts, 34, 93))
|
||||
|
||||
console.log(nameA);
|
||||
>console.log : Symbol(log, Decl(sourceMapValidationDestructuringForOfObjectBindingPatternDefaultValues.ts, 0, 22))
|
||||
>console : Symbol(console, Decl(sourceMapValidationDestructuringForOfObjectBindingPatternDefaultValues.ts, 0, 11))
|
||||
>log : Symbol(log, Decl(sourceMapValidationDestructuringForOfObjectBindingPatternDefaultValues.ts, 0, 22))
|
||||
>nameA : Symbol(nameA, Decl(sourceMapValidationDestructuringForOfObjectBindingPatternDefaultValues.ts, 34, 10))
|
||||
}
|
||||
for (let { skills: { primary: primaryA = "primary", secondary: secondaryA = "secondary" } =
|
||||
>skills : Symbol(MultiRobot.skills, Decl(sourceMapValidationDestructuringForOfObjectBindingPatternDefaultValues.ts, 9, 17))
|
||||
>primary : Symbol(primary, Decl(sourceMapValidationDestructuringForOfObjectBindingPatternDefaultValues.ts, 10, 13))
|
||||
>primaryA : Symbol(primaryA, Decl(sourceMapValidationDestructuringForOfObjectBindingPatternDefaultValues.ts, 37, 20))
|
||||
>secondary : Symbol(secondary, Decl(sourceMapValidationDestructuringForOfObjectBindingPatternDefaultValues.ts, 11, 25))
|
||||
>secondaryA : Symbol(secondaryA, Decl(sourceMapValidationDestructuringForOfObjectBindingPatternDefaultValues.ts, 37, 51))
|
||||
|
||||
{ primary: "nosKill", secondary: "noSkill" } } of multiRobots) {
|
||||
>primary : Symbol(primary, Decl(sourceMapValidationDestructuringForOfObjectBindingPatternDefaultValues.ts, 38, 5))
|
||||
>secondary : Symbol(secondary, Decl(sourceMapValidationDestructuringForOfObjectBindingPatternDefaultValues.ts, 38, 25))
|
||||
>multiRobots : Symbol(multiRobots, Decl(sourceMapValidationDestructuringForOfObjectBindingPatternDefaultValues.ts, 17, 3))
|
||||
|
||||
console.log(primaryA);
|
||||
>console.log : Symbol(log, Decl(sourceMapValidationDestructuringForOfObjectBindingPatternDefaultValues.ts, 0, 22))
|
||||
>console : Symbol(console, Decl(sourceMapValidationDestructuringForOfObjectBindingPatternDefaultValues.ts, 0, 11))
|
||||
>log : Symbol(log, Decl(sourceMapValidationDestructuringForOfObjectBindingPatternDefaultValues.ts, 0, 22))
|
||||
>primaryA : Symbol(primaryA, Decl(sourceMapValidationDestructuringForOfObjectBindingPatternDefaultValues.ts, 37, 20))
|
||||
}
|
||||
for (let { skills: { primary: primaryA = "primary", secondary: secondaryA = "secondary" } =
|
||||
>skills : Symbol(MultiRobot.skills, Decl(sourceMapValidationDestructuringForOfObjectBindingPatternDefaultValues.ts, 9, 17))
|
||||
>primary : Symbol(primary, Decl(sourceMapValidationDestructuringForOfObjectBindingPatternDefaultValues.ts, 10, 13))
|
||||
>primaryA : Symbol(primaryA, Decl(sourceMapValidationDestructuringForOfObjectBindingPatternDefaultValues.ts, 41, 20))
|
||||
>secondary : Symbol(secondary, Decl(sourceMapValidationDestructuringForOfObjectBindingPatternDefaultValues.ts, 11, 25))
|
||||
>secondaryA : Symbol(secondaryA, Decl(sourceMapValidationDestructuringForOfObjectBindingPatternDefaultValues.ts, 41, 51))
|
||||
|
||||
{ primary: "nosKill", secondary: "noSkill" } } of getMultiRobots()) {
|
||||
>primary : Symbol(primary, Decl(sourceMapValidationDestructuringForOfObjectBindingPatternDefaultValues.ts, 42, 5))
|
||||
>secondary : Symbol(secondary, Decl(sourceMapValidationDestructuringForOfObjectBindingPatternDefaultValues.ts, 42, 25))
|
||||
>getMultiRobots : Symbol(getMultiRobots, Decl(sourceMapValidationDestructuringForOfObjectBindingPatternDefaultValues.ts, 22, 1))
|
||||
|
||||
console.log(primaryA);
|
||||
>console.log : Symbol(log, Decl(sourceMapValidationDestructuringForOfObjectBindingPatternDefaultValues.ts, 0, 22))
|
||||
>console : Symbol(console, Decl(sourceMapValidationDestructuringForOfObjectBindingPatternDefaultValues.ts, 0, 11))
|
||||
>log : Symbol(log, Decl(sourceMapValidationDestructuringForOfObjectBindingPatternDefaultValues.ts, 0, 22))
|
||||
>primaryA : Symbol(primaryA, Decl(sourceMapValidationDestructuringForOfObjectBindingPatternDefaultValues.ts, 41, 20))
|
||||
}
|
||||
for (let { skills: { primary: primaryA = "primary", secondary: secondaryA = "secondary" } =
|
||||
>skills : Symbol(MultiRobot.skills, Decl(sourceMapValidationDestructuringForOfObjectBindingPatternDefaultValues.ts, 9, 17))
|
||||
>primary : Symbol(primary, Decl(sourceMapValidationDestructuringForOfObjectBindingPatternDefaultValues.ts, 10, 13))
|
||||
>primaryA : Symbol(primaryA, Decl(sourceMapValidationDestructuringForOfObjectBindingPatternDefaultValues.ts, 45, 20))
|
||||
>secondary : Symbol(secondary, Decl(sourceMapValidationDestructuringForOfObjectBindingPatternDefaultValues.ts, 11, 25))
|
||||
>secondaryA : Symbol(secondaryA, Decl(sourceMapValidationDestructuringForOfObjectBindingPatternDefaultValues.ts, 45, 51))
|
||||
|
||||
{ primary: "nosKill", secondary: "noSkill" } } of
|
||||
>primary : Symbol(primary, Decl(sourceMapValidationDestructuringForOfObjectBindingPatternDefaultValues.ts, 46, 5))
|
||||
>secondary : Symbol(secondary, Decl(sourceMapValidationDestructuringForOfObjectBindingPatternDefaultValues.ts, 46, 25))
|
||||
|
||||
<MultiRobot[]>[{ name: "mower", skills: { primary: "mowing", secondary: "none" } },
|
||||
>MultiRobot : Symbol(MultiRobot, Decl(sourceMapValidationDestructuringForOfObjectBindingPatternDefaultValues.ts, 6, 1))
|
||||
>name : Symbol(name, Decl(sourceMapValidationDestructuringForOfObjectBindingPatternDefaultValues.ts, 47, 20))
|
||||
>skills : Symbol(skills, Decl(sourceMapValidationDestructuringForOfObjectBindingPatternDefaultValues.ts, 47, 35))
|
||||
>primary : Symbol(primary, Decl(sourceMapValidationDestructuringForOfObjectBindingPatternDefaultValues.ts, 47, 45))
|
||||
>secondary : Symbol(secondary, Decl(sourceMapValidationDestructuringForOfObjectBindingPatternDefaultValues.ts, 47, 64))
|
||||
|
||||
{ name: "trimmer", skills: { primary: "trimming", secondary: "edging" } }]) {
|
||||
>name : Symbol(name, Decl(sourceMapValidationDestructuringForOfObjectBindingPatternDefaultValues.ts, 48, 5))
|
||||
>skills : Symbol(skills, Decl(sourceMapValidationDestructuringForOfObjectBindingPatternDefaultValues.ts, 48, 22))
|
||||
>primary : Symbol(primary, Decl(sourceMapValidationDestructuringForOfObjectBindingPatternDefaultValues.ts, 48, 32))
|
||||
>secondary : Symbol(secondary, Decl(sourceMapValidationDestructuringForOfObjectBindingPatternDefaultValues.ts, 48, 53))
|
||||
|
||||
console.log(primaryA);
|
||||
>console.log : Symbol(log, Decl(sourceMapValidationDestructuringForOfObjectBindingPatternDefaultValues.ts, 0, 22))
|
||||
>console : Symbol(console, Decl(sourceMapValidationDestructuringForOfObjectBindingPatternDefaultValues.ts, 0, 11))
|
||||
>log : Symbol(log, Decl(sourceMapValidationDestructuringForOfObjectBindingPatternDefaultValues.ts, 0, 22))
|
||||
>primaryA : Symbol(primaryA, Decl(sourceMapValidationDestructuringForOfObjectBindingPatternDefaultValues.ts, 45, 20))
|
||||
}
|
||||
|
||||
for (let {name: nameA = "noName", skill: skillA = "noSkill" } of robots) {
|
||||
>name : Symbol(Robot.name, Decl(sourceMapValidationDestructuringForOfObjectBindingPatternDefaultValues.ts, 3, 17))
|
||||
>nameA : Symbol(nameA, Decl(sourceMapValidationDestructuringForOfObjectBindingPatternDefaultValues.ts, 52, 10))
|
||||
>skill : Symbol(Robot.skill, Decl(sourceMapValidationDestructuringForOfObjectBindingPatternDefaultValues.ts, 4, 17))
|
||||
>skillA : Symbol(skillA, Decl(sourceMapValidationDestructuringForOfObjectBindingPatternDefaultValues.ts, 52, 33))
|
||||
>robots : Symbol(robots, Decl(sourceMapValidationDestructuringForOfObjectBindingPatternDefaultValues.ts, 16, 3))
|
||||
|
||||
console.log(nameA);
|
||||
>console.log : Symbol(log, Decl(sourceMapValidationDestructuringForOfObjectBindingPatternDefaultValues.ts, 0, 22))
|
||||
>console : Symbol(console, Decl(sourceMapValidationDestructuringForOfObjectBindingPatternDefaultValues.ts, 0, 11))
|
||||
>log : Symbol(log, Decl(sourceMapValidationDestructuringForOfObjectBindingPatternDefaultValues.ts, 0, 22))
|
||||
>nameA : Symbol(nameA, Decl(sourceMapValidationDestructuringForOfObjectBindingPatternDefaultValues.ts, 52, 10))
|
||||
}
|
||||
for (let {name: nameA = "noName", skill: skillA = "noSkill" } of getRobots()) {
|
||||
>name : Symbol(Robot.name, Decl(sourceMapValidationDestructuringForOfObjectBindingPatternDefaultValues.ts, 3, 17))
|
||||
>nameA : Symbol(nameA, Decl(sourceMapValidationDestructuringForOfObjectBindingPatternDefaultValues.ts, 55, 10))
|
||||
>skill : Symbol(Robot.skill, Decl(sourceMapValidationDestructuringForOfObjectBindingPatternDefaultValues.ts, 4, 17))
|
||||
>skillA : Symbol(skillA, Decl(sourceMapValidationDestructuringForOfObjectBindingPatternDefaultValues.ts, 55, 33))
|
||||
>getRobots : Symbol(getRobots, Decl(sourceMapValidationDestructuringForOfObjectBindingPatternDefaultValues.ts, 18, 79))
|
||||
|
||||
console.log(nameA);
|
||||
>console.log : Symbol(log, Decl(sourceMapValidationDestructuringForOfObjectBindingPatternDefaultValues.ts, 0, 22))
|
||||
>console : Symbol(console, Decl(sourceMapValidationDestructuringForOfObjectBindingPatternDefaultValues.ts, 0, 11))
|
||||
>log : Symbol(log, Decl(sourceMapValidationDestructuringForOfObjectBindingPatternDefaultValues.ts, 0, 22))
|
||||
>nameA : Symbol(nameA, Decl(sourceMapValidationDestructuringForOfObjectBindingPatternDefaultValues.ts, 55, 10))
|
||||
}
|
||||
for (let {name: nameA = "noName", skill: skillA = "noSkill" } of [{ name: "mower", skill: "mowing" }, { name: "trimmer", skill: "trimming" }]) {
|
||||
>name : Symbol(name, Decl(sourceMapValidationDestructuringForOfObjectBindingPatternDefaultValues.ts, 58, 68))
|
||||
>nameA : Symbol(nameA, Decl(sourceMapValidationDestructuringForOfObjectBindingPatternDefaultValues.ts, 58, 10))
|
||||
>skill : Symbol(skill, Decl(sourceMapValidationDestructuringForOfObjectBindingPatternDefaultValues.ts, 58, 83))
|
||||
>skillA : Symbol(skillA, Decl(sourceMapValidationDestructuringForOfObjectBindingPatternDefaultValues.ts, 58, 33))
|
||||
>name : Symbol(name, Decl(sourceMapValidationDestructuringForOfObjectBindingPatternDefaultValues.ts, 58, 68))
|
||||
>skill : Symbol(skill, Decl(sourceMapValidationDestructuringForOfObjectBindingPatternDefaultValues.ts, 58, 83))
|
||||
>name : Symbol(name, Decl(sourceMapValidationDestructuringForOfObjectBindingPatternDefaultValues.ts, 58, 104))
|
||||
>skill : Symbol(skill, Decl(sourceMapValidationDestructuringForOfObjectBindingPatternDefaultValues.ts, 58, 121))
|
||||
|
||||
console.log(nameA);
|
||||
>console.log : Symbol(log, Decl(sourceMapValidationDestructuringForOfObjectBindingPatternDefaultValues.ts, 0, 22))
|
||||
>console : Symbol(console, Decl(sourceMapValidationDestructuringForOfObjectBindingPatternDefaultValues.ts, 0, 11))
|
||||
>log : Symbol(log, Decl(sourceMapValidationDestructuringForOfObjectBindingPatternDefaultValues.ts, 0, 22))
|
||||
>nameA : Symbol(nameA, Decl(sourceMapValidationDestructuringForOfObjectBindingPatternDefaultValues.ts, 58, 10))
|
||||
}
|
||||
for (let {
|
||||
name: nameA = "noName",
|
||||
>name : Symbol(MultiRobot.name, Decl(sourceMapValidationDestructuringForOfObjectBindingPatternDefaultValues.ts, 8, 22))
|
||||
>nameA : Symbol(nameA, Decl(sourceMapValidationDestructuringForOfObjectBindingPatternDefaultValues.ts, 61, 10))
|
||||
|
||||
skills: {
|
||||
>skills : Symbol(MultiRobot.skills, Decl(sourceMapValidationDestructuringForOfObjectBindingPatternDefaultValues.ts, 9, 17))
|
||||
|
||||
primary: primaryA = "primary",
|
||||
>primary : Symbol(primary, Decl(sourceMapValidationDestructuringForOfObjectBindingPatternDefaultValues.ts, 10, 13))
|
||||
>primaryA : Symbol(primaryA, Decl(sourceMapValidationDestructuringForOfObjectBindingPatternDefaultValues.ts, 63, 13))
|
||||
|
||||
secondary: secondaryA = "secondary"
|
||||
>secondary : Symbol(secondary, Decl(sourceMapValidationDestructuringForOfObjectBindingPatternDefaultValues.ts, 11, 25))
|
||||
>secondaryA : Symbol(secondaryA, Decl(sourceMapValidationDestructuringForOfObjectBindingPatternDefaultValues.ts, 64, 38))
|
||||
|
||||
} = { primary: "noSkill", secondary: "noSkill" }
|
||||
>primary : Symbol(primary, Decl(sourceMapValidationDestructuringForOfObjectBindingPatternDefaultValues.ts, 66, 9))
|
||||
>secondary : Symbol(secondary, Decl(sourceMapValidationDestructuringForOfObjectBindingPatternDefaultValues.ts, 66, 29))
|
||||
|
||||
} of multiRobots) {
|
||||
>multiRobots : Symbol(multiRobots, Decl(sourceMapValidationDestructuringForOfObjectBindingPatternDefaultValues.ts, 17, 3))
|
||||
|
||||
console.log(nameA);
|
||||
>console.log : Symbol(log, Decl(sourceMapValidationDestructuringForOfObjectBindingPatternDefaultValues.ts, 0, 22))
|
||||
>console : Symbol(console, Decl(sourceMapValidationDestructuringForOfObjectBindingPatternDefaultValues.ts, 0, 11))
|
||||
>log : Symbol(log, Decl(sourceMapValidationDestructuringForOfObjectBindingPatternDefaultValues.ts, 0, 22))
|
||||
>nameA : Symbol(nameA, Decl(sourceMapValidationDestructuringForOfObjectBindingPatternDefaultValues.ts, 61, 10))
|
||||
}
|
||||
for (let {
|
||||
name: nameA = "noName",
|
||||
>name : Symbol(MultiRobot.name, Decl(sourceMapValidationDestructuringForOfObjectBindingPatternDefaultValues.ts, 8, 22))
|
||||
>nameA : Symbol(nameA, Decl(sourceMapValidationDestructuringForOfObjectBindingPatternDefaultValues.ts, 70, 10))
|
||||
|
||||
skills: {
|
||||
>skills : Symbol(MultiRobot.skills, Decl(sourceMapValidationDestructuringForOfObjectBindingPatternDefaultValues.ts, 9, 17))
|
||||
|
||||
primary: primaryA = "primary",
|
||||
>primary : Symbol(primary, Decl(sourceMapValidationDestructuringForOfObjectBindingPatternDefaultValues.ts, 10, 13))
|
||||
>primaryA : Symbol(primaryA, Decl(sourceMapValidationDestructuringForOfObjectBindingPatternDefaultValues.ts, 72, 13))
|
||||
|
||||
secondary: secondaryA = "secondary"
|
||||
>secondary : Symbol(secondary, Decl(sourceMapValidationDestructuringForOfObjectBindingPatternDefaultValues.ts, 11, 25))
|
||||
>secondaryA : Symbol(secondaryA, Decl(sourceMapValidationDestructuringForOfObjectBindingPatternDefaultValues.ts, 73, 38))
|
||||
|
||||
} = { primary: "noSkill", secondary: "noSkill" }
|
||||
>primary : Symbol(primary, Decl(sourceMapValidationDestructuringForOfObjectBindingPatternDefaultValues.ts, 75, 9))
|
||||
>secondary : Symbol(secondary, Decl(sourceMapValidationDestructuringForOfObjectBindingPatternDefaultValues.ts, 75, 29))
|
||||
|
||||
} of getMultiRobots()) {
|
||||
>getMultiRobots : Symbol(getMultiRobots, Decl(sourceMapValidationDestructuringForOfObjectBindingPatternDefaultValues.ts, 22, 1))
|
||||
|
||||
console.log(nameA);
|
||||
>console.log : Symbol(log, Decl(sourceMapValidationDestructuringForOfObjectBindingPatternDefaultValues.ts, 0, 22))
|
||||
>console : Symbol(console, Decl(sourceMapValidationDestructuringForOfObjectBindingPatternDefaultValues.ts, 0, 11))
|
||||
>log : Symbol(log, Decl(sourceMapValidationDestructuringForOfObjectBindingPatternDefaultValues.ts, 0, 22))
|
||||
>nameA : Symbol(nameA, Decl(sourceMapValidationDestructuringForOfObjectBindingPatternDefaultValues.ts, 70, 10))
|
||||
}
|
||||
for (let {
|
||||
name: nameA = "noName",
|
||||
>name : Symbol(MultiRobot.name, Decl(sourceMapValidationDestructuringForOfObjectBindingPatternDefaultValues.ts, 8, 22))
|
||||
>nameA : Symbol(nameA, Decl(sourceMapValidationDestructuringForOfObjectBindingPatternDefaultValues.ts, 79, 10))
|
||||
|
||||
skills: {
|
||||
>skills : Symbol(MultiRobot.skills, Decl(sourceMapValidationDestructuringForOfObjectBindingPatternDefaultValues.ts, 9, 17))
|
||||
|
||||
primary: primaryA = "primary",
|
||||
>primary : Symbol(primary, Decl(sourceMapValidationDestructuringForOfObjectBindingPatternDefaultValues.ts, 10, 13))
|
||||
>primaryA : Symbol(primaryA, Decl(sourceMapValidationDestructuringForOfObjectBindingPatternDefaultValues.ts, 81, 13))
|
||||
|
||||
secondary: secondaryA = "secondary"
|
||||
>secondary : Symbol(secondary, Decl(sourceMapValidationDestructuringForOfObjectBindingPatternDefaultValues.ts, 11, 25))
|
||||
>secondaryA : Symbol(secondaryA, Decl(sourceMapValidationDestructuringForOfObjectBindingPatternDefaultValues.ts, 82, 38))
|
||||
|
||||
} = { primary: "noSkill", secondary: "noSkill" }
|
||||
>primary : Symbol(primary, Decl(sourceMapValidationDestructuringForOfObjectBindingPatternDefaultValues.ts, 84, 9))
|
||||
>secondary : Symbol(secondary, Decl(sourceMapValidationDestructuringForOfObjectBindingPatternDefaultValues.ts, 84, 29))
|
||||
|
||||
} of <MultiRobot[]>[{ name: "mower", skills: { primary: "mowing", secondary: "none" } },
|
||||
>MultiRobot : Symbol(MultiRobot, Decl(sourceMapValidationDestructuringForOfObjectBindingPatternDefaultValues.ts, 6, 1))
|
||||
>name : Symbol(name, Decl(sourceMapValidationDestructuringForOfObjectBindingPatternDefaultValues.ts, 85, 21))
|
||||
>skills : Symbol(skills, Decl(sourceMapValidationDestructuringForOfObjectBindingPatternDefaultValues.ts, 85, 36))
|
||||
>primary : Symbol(primary, Decl(sourceMapValidationDestructuringForOfObjectBindingPatternDefaultValues.ts, 85, 46))
|
||||
>secondary : Symbol(secondary, Decl(sourceMapValidationDestructuringForOfObjectBindingPatternDefaultValues.ts, 85, 65))
|
||||
|
||||
{ name: "trimmer", skills: { primary: "trimming", secondary: "edging" } }]) {
|
||||
>name : Symbol(name, Decl(sourceMapValidationDestructuringForOfObjectBindingPatternDefaultValues.ts, 86, 5))
|
||||
>skills : Symbol(skills, Decl(sourceMapValidationDestructuringForOfObjectBindingPatternDefaultValues.ts, 86, 22))
|
||||
>primary : Symbol(primary, Decl(sourceMapValidationDestructuringForOfObjectBindingPatternDefaultValues.ts, 86, 32))
|
||||
>secondary : Symbol(secondary, Decl(sourceMapValidationDestructuringForOfObjectBindingPatternDefaultValues.ts, 86, 53))
|
||||
|
||||
console.log(nameA);
|
||||
>console.log : Symbol(log, Decl(sourceMapValidationDestructuringForOfObjectBindingPatternDefaultValues.ts, 0, 22))
|
||||
>console : Symbol(console, Decl(sourceMapValidationDestructuringForOfObjectBindingPatternDefaultValues.ts, 0, 11))
|
||||
>log : Symbol(log, Decl(sourceMapValidationDestructuringForOfObjectBindingPatternDefaultValues.ts, 0, 22))
|
||||
>nameA : Symbol(nameA, Decl(sourceMapValidationDestructuringForOfObjectBindingPatternDefaultValues.ts, 79, 10))
|
||||
}
|
||||
@@ -0,0 +1,428 @@
|
||||
=== tests/cases/compiler/sourceMapValidationDestructuringForOfObjectBindingPatternDefaultValues.ts ===
|
||||
declare var console: {
|
||||
>console : { log(msg: any): void; }
|
||||
|
||||
log(msg: any): void;
|
||||
>log : (msg: any) => void
|
||||
>msg : any
|
||||
}
|
||||
interface Robot {
|
||||
>Robot : Robot
|
||||
|
||||
name: string;
|
||||
>name : string
|
||||
|
||||
skill: string;
|
||||
>skill : string
|
||||
}
|
||||
|
||||
interface MultiRobot {
|
||||
>MultiRobot : MultiRobot
|
||||
|
||||
name: string;
|
||||
>name : string
|
||||
|
||||
skills: {
|
||||
>skills : { primary?: string; secondary?: string; }
|
||||
|
||||
primary?: string;
|
||||
>primary : string
|
||||
|
||||
secondary?: string;
|
||||
>secondary : string
|
||||
|
||||
};
|
||||
}
|
||||
|
||||
let robots: Robot[] = [{ name: "mower", skill: "mowing" }, { name: "trimmer", skill: "trimming" }];
|
||||
>robots : Robot[]
|
||||
>Robot : Robot
|
||||
>[{ name: "mower", skill: "mowing" }, { name: "trimmer", skill: "trimming" }] : { name: string; skill: string; }[]
|
||||
>{ name: "mower", skill: "mowing" } : { name: string; skill: string; }
|
||||
>name : string
|
||||
>"mower" : string
|
||||
>skill : string
|
||||
>"mowing" : string
|
||||
>{ name: "trimmer", skill: "trimming" } : { name: string; skill: string; }
|
||||
>name : string
|
||||
>"trimmer" : string
|
||||
>skill : string
|
||||
>"trimming" : string
|
||||
|
||||
let multiRobots: MultiRobot[] = [{ name: "mower", skills: { primary: "mowing", secondary: "none" } },
|
||||
>multiRobots : MultiRobot[]
|
||||
>MultiRobot : MultiRobot
|
||||
>[{ name: "mower", skills: { primary: "mowing", secondary: "none" } }, { name: "trimmer", skills: { primary: "trimming", secondary: "edging" } }] : { name: string; skills: { primary: string; secondary: string; }; }[]
|
||||
>{ name: "mower", skills: { primary: "mowing", secondary: "none" } } : { name: string; skills: { primary: string; secondary: string; }; }
|
||||
>name : string
|
||||
>"mower" : string
|
||||
>skills : { primary: string; secondary: string; }
|
||||
>{ primary: "mowing", secondary: "none" } : { primary: string; secondary: string; }
|
||||
>primary : string
|
||||
>"mowing" : string
|
||||
>secondary : string
|
||||
>"none" : string
|
||||
|
||||
{ name: "trimmer", skills: { primary: "trimming", secondary: "edging" } }];
|
||||
>{ name: "trimmer", skills: { primary: "trimming", secondary: "edging" } } : { name: string; skills: { primary: string; secondary: string; }; }
|
||||
>name : string
|
||||
>"trimmer" : string
|
||||
>skills : { primary: string; secondary: string; }
|
||||
>{ primary: "trimming", secondary: "edging" } : { primary: string; secondary: string; }
|
||||
>primary : string
|
||||
>"trimming" : string
|
||||
>secondary : string
|
||||
>"edging" : string
|
||||
|
||||
function getRobots() {
|
||||
>getRobots : () => Robot[]
|
||||
|
||||
return robots;
|
||||
>robots : Robot[]
|
||||
}
|
||||
|
||||
function getMultiRobots() {
|
||||
>getMultiRobots : () => MultiRobot[]
|
||||
|
||||
return multiRobots;
|
||||
>multiRobots : MultiRobot[]
|
||||
}
|
||||
|
||||
for (let {name: nameA = "noName" } of robots) {
|
||||
>name : any
|
||||
>nameA : string
|
||||
>"noName" : string
|
||||
>robots : Robot[]
|
||||
|
||||
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 {name: nameA = "noName" } of getRobots()) {
|
||||
>name : any
|
||||
>nameA : string
|
||||
>"noName" : string
|
||||
>getRobots() : Robot[]
|
||||
>getRobots : () => Robot[]
|
||||
|
||||
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 {name: nameA = "noName" } of [{ name: "mower", skill: "mowing" }, { name: "trimmer", skill: "trimming" }]) {
|
||||
>name : any
|
||||
>nameA : string
|
||||
>"noName" : string
|
||||
>[{ name: "mower", skill: "mowing" }, { name: "trimmer", skill: "trimming" }] : { name: string; skill: string; }[]
|
||||
>{ name: "mower", skill: "mowing" } : { name: string; skill: string; }
|
||||
>name : string
|
||||
>"mower" : string
|
||||
>skill : string
|
||||
>"mowing" : string
|
||||
>{ name: "trimmer", skill: "trimming" } : { name: string; skill: string; }
|
||||
>name : string
|
||||
>"trimmer" : string
|
||||
>skill : string
|
||||
>"trimming" : 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 { skills: { primary: primaryA = "primary", secondary: secondaryA = "secondary" } =
|
||||
>skills : any
|
||||
>primary : any
|
||||
>primaryA : string
|
||||
>"primary" : string
|
||||
>secondary : any
|
||||
>secondaryA : string
|
||||
>"secondary" : string
|
||||
|
||||
{ primary: "nosKill", secondary: "noSkill" } } of multiRobots) {
|
||||
>{ primary: "nosKill", secondary: "noSkill" } : { primary?: string; secondary?: string; }
|
||||
>primary : string
|
||||
>"nosKill" : string
|
||||
>secondary : string
|
||||
>"noSkill" : string
|
||||
>multiRobots : MultiRobot[]
|
||||
|
||||
console.log(primaryA);
|
||||
>console.log(primaryA) : void
|
||||
>console.log : (msg: any) => void
|
||||
>console : { log(msg: any): void; }
|
||||
>log : (msg: any) => void
|
||||
>primaryA : string
|
||||
}
|
||||
for (let { skills: { primary: primaryA = "primary", secondary: secondaryA = "secondary" } =
|
||||
>skills : any
|
||||
>primary : any
|
||||
>primaryA : string
|
||||
>"primary" : string
|
||||
>secondary : any
|
||||
>secondaryA : string
|
||||
>"secondary" : string
|
||||
|
||||
{ primary: "nosKill", secondary: "noSkill" } } of getMultiRobots()) {
|
||||
>{ primary: "nosKill", secondary: "noSkill" } : { primary?: string; secondary?: string; }
|
||||
>primary : string
|
||||
>"nosKill" : string
|
||||
>secondary : string
|
||||
>"noSkill" : string
|
||||
>getMultiRobots() : MultiRobot[]
|
||||
>getMultiRobots : () => MultiRobot[]
|
||||
|
||||
console.log(primaryA);
|
||||
>console.log(primaryA) : void
|
||||
>console.log : (msg: any) => void
|
||||
>console : { log(msg: any): void; }
|
||||
>log : (msg: any) => void
|
||||
>primaryA : string
|
||||
}
|
||||
for (let { skills: { primary: primaryA = "primary", secondary: secondaryA = "secondary" } =
|
||||
>skills : any
|
||||
>primary : any
|
||||
>primaryA : string
|
||||
>"primary" : string
|
||||
>secondary : any
|
||||
>secondaryA : string
|
||||
>"secondary" : string
|
||||
|
||||
{ primary: "nosKill", secondary: "noSkill" } } of
|
||||
>{ primary: "nosKill", secondary: "noSkill" } : { primary?: string; secondary?: string; }
|
||||
>primary : string
|
||||
>"nosKill" : string
|
||||
>secondary : string
|
||||
>"noSkill" : string
|
||||
|
||||
<MultiRobot[]>[{ name: "mower", skills: { primary: "mowing", secondary: "none" } },
|
||||
><MultiRobot[]>[{ name: "mower", skills: { primary: "mowing", secondary: "none" } }, { name: "trimmer", skills: { primary: "trimming", secondary: "edging" } }] : MultiRobot[]
|
||||
>MultiRobot : MultiRobot
|
||||
>[{ name: "mower", skills: { primary: "mowing", secondary: "none" } }, { name: "trimmer", skills: { primary: "trimming", secondary: "edging" } }] : { name: string; skills: { primary: string; secondary: string; }; }[]
|
||||
>{ name: "mower", skills: { primary: "mowing", secondary: "none" } } : { name: string; skills: { primary: string; secondary: string; }; }
|
||||
>name : string
|
||||
>"mower" : string
|
||||
>skills : { primary: string; secondary: string; }
|
||||
>{ primary: "mowing", secondary: "none" } : { primary: string; secondary: string; }
|
||||
>primary : string
|
||||
>"mowing" : string
|
||||
>secondary : string
|
||||
>"none" : string
|
||||
|
||||
{ name: "trimmer", skills: { primary: "trimming", secondary: "edging" } }]) {
|
||||
>{ name: "trimmer", skills: { primary: "trimming", secondary: "edging" } } : { name: string; skills: { primary: string; secondary: string; }; }
|
||||
>name : string
|
||||
>"trimmer" : string
|
||||
>skills : { primary: string; secondary: string; }
|
||||
>{ primary: "trimming", secondary: "edging" } : { primary: string; secondary: string; }
|
||||
>primary : string
|
||||
>"trimming" : string
|
||||
>secondary : string
|
||||
>"edging" : string
|
||||
|
||||
console.log(primaryA);
|
||||
>console.log(primaryA) : void
|
||||
>console.log : (msg: any) => void
|
||||
>console : { log(msg: any): void; }
|
||||
>log : (msg: any) => void
|
||||
>primaryA : string
|
||||
}
|
||||
|
||||
for (let {name: nameA = "noName", skill: skillA = "noSkill" } of robots) {
|
||||
>name : any
|
||||
>nameA : string
|
||||
>"noName" : string
|
||||
>skill : any
|
||||
>skillA : string
|
||||
>"noSkill" : string
|
||||
>robots : Robot[]
|
||||
|
||||
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 {name: nameA = "noName", skill: skillA = "noSkill" } of getRobots()) {
|
||||
>name : any
|
||||
>nameA : string
|
||||
>"noName" : string
|
||||
>skill : any
|
||||
>skillA : string
|
||||
>"noSkill" : string
|
||||
>getRobots() : Robot[]
|
||||
>getRobots : () => Robot[]
|
||||
|
||||
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 {name: nameA = "noName", skill: skillA = "noSkill" } of [{ name: "mower", skill: "mowing" }, { name: "trimmer", skill: "trimming" }]) {
|
||||
>name : any
|
||||
>nameA : string
|
||||
>"noName" : string
|
||||
>skill : any
|
||||
>skillA : string
|
||||
>"noSkill" : string
|
||||
>[{ name: "mower", skill: "mowing" }, { name: "trimmer", skill: "trimming" }] : { name: string; skill: string; }[]
|
||||
>{ name: "mower", skill: "mowing" } : { name: string; skill: string; }
|
||||
>name : string
|
||||
>"mower" : string
|
||||
>skill : string
|
||||
>"mowing" : string
|
||||
>{ name: "trimmer", skill: "trimming" } : { name: string; skill: string; }
|
||||
>name : string
|
||||
>"trimmer" : string
|
||||
>skill : string
|
||||
>"trimming" : 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 {
|
||||
name: nameA = "noName",
|
||||
>name : any
|
||||
>nameA : string
|
||||
>"noName" : string
|
||||
|
||||
skills: {
|
||||
>skills : any
|
||||
|
||||
primary: primaryA = "primary",
|
||||
>primary : any
|
||||
>primaryA : string
|
||||
>"primary" : string
|
||||
|
||||
secondary: secondaryA = "secondary"
|
||||
>secondary : any
|
||||
>secondaryA : string
|
||||
>"secondary" : string
|
||||
|
||||
} = { primary: "noSkill", secondary: "noSkill" }
|
||||
>{ primary: "noSkill", secondary: "noSkill" } : { primary?: string; secondary?: string; }
|
||||
>primary : string
|
||||
>"noSkill" : string
|
||||
>secondary : string
|
||||
>"noSkill" : string
|
||||
|
||||
} of multiRobots) {
|
||||
>multiRobots : MultiRobot[]
|
||||
|
||||
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 {
|
||||
name: nameA = "noName",
|
||||
>name : any
|
||||
>nameA : string
|
||||
>"noName" : string
|
||||
|
||||
skills: {
|
||||
>skills : any
|
||||
|
||||
primary: primaryA = "primary",
|
||||
>primary : any
|
||||
>primaryA : string
|
||||
>"primary" : string
|
||||
|
||||
secondary: secondaryA = "secondary"
|
||||
>secondary : any
|
||||
>secondaryA : string
|
||||
>"secondary" : string
|
||||
|
||||
} = { primary: "noSkill", secondary: "noSkill" }
|
||||
>{ primary: "noSkill", secondary: "noSkill" } : { primary?: string; secondary?: string; }
|
||||
>primary : string
|
||||
>"noSkill" : string
|
||||
>secondary : string
|
||||
>"noSkill" : string
|
||||
|
||||
} of getMultiRobots()) {
|
||||
>getMultiRobots() : MultiRobot[]
|
||||
>getMultiRobots : () => MultiRobot[]
|
||||
|
||||
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 {
|
||||
name: nameA = "noName",
|
||||
>name : any
|
||||
>nameA : string
|
||||
>"noName" : string
|
||||
|
||||
skills: {
|
||||
>skills : any
|
||||
|
||||
primary: primaryA = "primary",
|
||||
>primary : any
|
||||
>primaryA : string
|
||||
>"primary" : string
|
||||
|
||||
secondary: secondaryA = "secondary"
|
||||
>secondary : any
|
||||
>secondaryA : string
|
||||
>"secondary" : string
|
||||
|
||||
} = { primary: "noSkill", secondary: "noSkill" }
|
||||
>{ primary: "noSkill", secondary: "noSkill" } : { primary?: string; secondary?: string; }
|
||||
>primary : string
|
||||
>"noSkill" : string
|
||||
>secondary : string
|
||||
>"noSkill" : string
|
||||
|
||||
} of <MultiRobot[]>[{ name: "mower", skills: { primary: "mowing", secondary: "none" } },
|
||||
><MultiRobot[]>[{ name: "mower", skills: { primary: "mowing", secondary: "none" } }, { name: "trimmer", skills: { primary: "trimming", secondary: "edging" } }] : MultiRobot[]
|
||||
>MultiRobot : MultiRobot
|
||||
>[{ name: "mower", skills: { primary: "mowing", secondary: "none" } }, { name: "trimmer", skills: { primary: "trimming", secondary: "edging" } }] : { name: string; skills: { primary: string; secondary: string; }; }[]
|
||||
>{ name: "mower", skills: { primary: "mowing", secondary: "none" } } : { name: string; skills: { primary: string; secondary: string; }; }
|
||||
>name : string
|
||||
>"mower" : string
|
||||
>skills : { primary: string; secondary: string; }
|
||||
>{ primary: "mowing", secondary: "none" } : { primary: string; secondary: string; }
|
||||
>primary : string
|
||||
>"mowing" : string
|
||||
>secondary : string
|
||||
>"none" : string
|
||||
|
||||
{ name: "trimmer", skills: { primary: "trimming", secondary: "edging" } }]) {
|
||||
>{ name: "trimmer", skills: { primary: "trimming", secondary: "edging" } } : { name: string; skills: { primary: string; secondary: string; }; }
|
||||
>name : string
|
||||
>"trimmer" : string
|
||||
>skills : { primary: string; secondary: string; }
|
||||
>{ primary: "trimming", secondary: "edging" } : { primary: string; secondary: string; }
|
||||
>primary : string
|
||||
>"trimming" : string
|
||||
>secondary : string
|
||||
>"edging" : string
|
||||
|
||||
console.log(nameA);
|
||||
>console.log(nameA) : void
|
||||
>console.log : (msg: any) => void
|
||||
>console : { log(msg: any): void; }
|
||||
>log : (msg: any) => void
|
||||
>nameA : string
|
||||
}
|
||||
@@ -0,0 +1,282 @@
|
||||
//// [sourceMapValidationDestructuringForOfObjectBindingPatternDefaultValues2.ts]
|
||||
declare var console: {
|
||||
log(msg: any): void;
|
||||
}
|
||||
interface Robot {
|
||||
name: string;
|
||||
skill: string;
|
||||
}
|
||||
|
||||
interface MultiRobot {
|
||||
name: string;
|
||||
skills: {
|
||||
primary: string;
|
||||
secondary: string;
|
||||
};
|
||||
}
|
||||
|
||||
let robots: Robot[] = [{ name: "mower", skill: "mowing" }, { name: "trimmer", skill: "trimming" }];
|
||||
let multiRobots: MultiRobot[] = [{ name: "mower", skills: { primary: "mowing", secondary: "none" } },
|
||||
{ name: "trimmer", skills: { primary: "trimming", secondary: "edging" } }];
|
||||
|
||||
function getRobots() {
|
||||
return robots;
|
||||
}
|
||||
|
||||
function getMultiRobots() {
|
||||
return multiRobots;
|
||||
}
|
||||
|
||||
let nameA: string, primaryA: string, secondaryA: string, i: number, skillA: string;
|
||||
let name: string, primary: string, secondary: string, skill: string;
|
||||
|
||||
for ({name: nameA = "noName" } of robots) {
|
||||
console.log(nameA);
|
||||
}
|
||||
for ({name: nameA = "noName" } of getRobots()) {
|
||||
console.log(nameA);
|
||||
}
|
||||
for ({name: nameA = "noName" } of [{ name: "mower", skill: "mowing" }, { name: "trimmer", skill: "trimming" }]) {
|
||||
console.log(nameA);
|
||||
}
|
||||
for ({ skills: { primary: primaryA = "primary", secondary: secondaryA = "secondary" } =
|
||||
{ primary: "nosKill", secondary: "noSkill" } } of multiRobots) {
|
||||
console.log(primaryA);
|
||||
}
|
||||
for ({ skills: { primary: primaryA = "primary", secondary: secondaryA = "secondary" } =
|
||||
{ primary: "nosKill", secondary: "noSkill" } } of getMultiRobots()) {
|
||||
console.log(primaryA);
|
||||
}
|
||||
for ({ skills: { primary: primaryA = "primary", secondary: secondaryA = "secondary" } =
|
||||
{ primary: "nosKill", secondary: "noSkill" } } of
|
||||
<MultiRobot[]>[{ name: "mower", skills: { primary: "mowing", secondary: "none" } },
|
||||
{ name: "trimmer", skills: { primary: "trimming", secondary: "edging" } }]) {
|
||||
console.log(primaryA);
|
||||
}
|
||||
|
||||
for ({ name = "noName" } of robots) {
|
||||
console.log(nameA);
|
||||
}
|
||||
for ({ name = "noName" } of getRobots()) {
|
||||
console.log(nameA);
|
||||
}
|
||||
for ({ name = "noName" } of [{ name: "mower", skill: "mowing" }, { name: "trimmer", skill: "trimming" }]) {
|
||||
console.log(nameA);
|
||||
}
|
||||
for ({
|
||||
skills: {
|
||||
primary = "primary",
|
||||
secondary = "secondary"
|
||||
} = { primary: "noSkill", secondary: "noSkill" }
|
||||
} of multiRobots) {
|
||||
console.log(primaryA);
|
||||
}
|
||||
for ({
|
||||
skills: {
|
||||
primary = "primary",
|
||||
secondary = "secondary"
|
||||
} = { primary: "noSkill", secondary: "noSkill" }
|
||||
} of getMultiRobots()) {
|
||||
console.log(primaryA);
|
||||
}
|
||||
for ({
|
||||
skills: {
|
||||
primary = "primary",
|
||||
secondary = "secondary"
|
||||
} = { primary: "noSkill", secondary: "noSkill" }
|
||||
} of [{ name: "mower", skills: { primary: "mowing", secondary: "none" } },
|
||||
{ name: "trimmer", skills: { primary: "trimming", secondary: "edging" } }]) {
|
||||
console.log(primaryA);
|
||||
}
|
||||
|
||||
|
||||
for ({name: nameA = "noName", skill: skillA = "noSkill" } of robots) {
|
||||
console.log(nameA);
|
||||
}
|
||||
for ({name: nameA = "noName", skill: skillA = "noSkill" } of getRobots()) {
|
||||
console.log(nameA);
|
||||
}
|
||||
for ({name: nameA = "noName", skill: skillA = "noSkill" } of [{ name: "mower", skill: "mowing" }, { name: "trimmer", skill: "trimming" }]) {
|
||||
console.log(nameA);
|
||||
}
|
||||
for ({
|
||||
name: nameA = "noName",
|
||||
skills: {
|
||||
primary: primaryA = "primary",
|
||||
secondary: secondaryA = "secondary"
|
||||
} = { primary: "noSkill", secondary: "noSkill" }
|
||||
} of multiRobots) {
|
||||
console.log(nameA);
|
||||
}
|
||||
for ({
|
||||
name: nameA = "noName",
|
||||
skills: {
|
||||
primary: primaryA = "primary",
|
||||
secondary: secondaryA = "secondary"
|
||||
} = { primary: "noSkill", secondary: "noSkill" }
|
||||
} of getMultiRobots()) {
|
||||
console.log(nameA);
|
||||
}
|
||||
for ({
|
||||
name: nameA = "noName",
|
||||
skills: {
|
||||
primary: primaryA = "primary",
|
||||
secondary: secondaryA = "secondary"
|
||||
} = { primary: "noSkill", secondary: "noSkill" }
|
||||
} of <MultiRobot[]>[{ name: "mower", skills: { primary: "mowing", secondary: "none" } },
|
||||
{ name: "trimmer", skills: { primary: "trimming", secondary: "edging" } }]) {
|
||||
console.log(nameA);
|
||||
}
|
||||
|
||||
for ({ name = "noName", skill = "noSkill" } of robots) {
|
||||
console.log(nameA);
|
||||
}
|
||||
for ({ name = "noName", skill = "noSkill" } of getRobots()) {
|
||||
console.log(nameA);
|
||||
}
|
||||
for ({ name = "noName", skill = "noSkill" } of [{ name: "mower", skill: "mowing" }, { name: "trimmer", skill: "trimming" }]) {
|
||||
console.log(nameA);
|
||||
}
|
||||
for ({
|
||||
name = "noName",
|
||||
skills: {
|
||||
primary = "primary",
|
||||
secondary = "secondary"
|
||||
} = { primary: "noSkill", secondary: "noSkill" }
|
||||
} of multiRobots) {
|
||||
console.log(nameA);
|
||||
}
|
||||
for ({
|
||||
name = "noName",
|
||||
skills: {
|
||||
primary = "primary",
|
||||
secondary = "secondary"
|
||||
} = { primary: "noSkill", secondary: "noSkill" }
|
||||
} of getMultiRobots()) {
|
||||
console.log(nameA);
|
||||
}
|
||||
for ({
|
||||
name = "noName",
|
||||
skills: {
|
||||
primary = "primary",
|
||||
secondary = "secondary"
|
||||
} = { primary: "noSkill", secondary: "noSkill" }
|
||||
} of [{ name: "mower", skills: { primary: "mowing", secondary: "none" } },
|
||||
{ name: "trimmer", skills: { primary: "trimming", secondary: "edging" } }]) {
|
||||
console.log(nameA);
|
||||
}
|
||||
|
||||
//// [sourceMapValidationDestructuringForOfObjectBindingPatternDefaultValues2.js]
|
||||
var robots = [{ name: "mower", skill: "mowing" }, { name: "trimmer", skill: "trimming" }];
|
||||
var multiRobots = [{ name: "mower", skills: { primary: "mowing", secondary: "none" } },
|
||||
{ name: "trimmer", skills: { primary: "trimming", secondary: "edging" } }];
|
||||
function getRobots() {
|
||||
return robots;
|
||||
}
|
||||
function getMultiRobots() {
|
||||
return multiRobots;
|
||||
}
|
||||
var nameA, primaryA, secondaryA, i, skillA;
|
||||
var name, primary, secondary, skill;
|
||||
for (var _i = 0, robots_1 = robots; _i < robots_1.length; _i++) {
|
||||
_a = robots_1[_i].name, nameA = _a === void 0 ? "noName" : _a;
|
||||
console.log(nameA);
|
||||
}
|
||||
for (var _b = 0, _c = getRobots(); _b < _c.length; _b++) {
|
||||
_d = _c[_b].name, nameA = _d === void 0 ? "noName" : _d;
|
||||
console.log(nameA);
|
||||
}
|
||||
for (var _e = 0, _f = [{ name: "mower", skill: "mowing" }, { name: "trimmer", skill: "trimming" }]; _e < _f.length; _e++) {
|
||||
_g = _f[_e].name, nameA = _g === void 0 ? "noName" : _g;
|
||||
console.log(nameA);
|
||||
}
|
||||
for (var _h = 0, multiRobots_1 = multiRobots; _h < multiRobots_1.length; _h++) {
|
||||
_j = multiRobots_1[_h].skills, _k = _j === void 0 ? { primary: "nosKill", secondary: "noSkill" } : _j, _l = _k.primary, primaryA = _l === void 0 ? "primary" : _l, _m = _k.secondary, secondaryA = _m === void 0 ? "secondary" : _m;
|
||||
console.log(primaryA);
|
||||
}
|
||||
for (var _o = 0, _p = getMultiRobots(); _o < _p.length; _o++) {
|
||||
_q = _p[_o].skills, _r = _q === void 0 ? { primary: "nosKill", secondary: "noSkill" } : _q, _s = _r.primary, primaryA = _s === void 0 ? "primary" : _s, _t = _r.secondary, secondaryA = _t === void 0 ? "secondary" : _t;
|
||||
console.log(primaryA);
|
||||
}
|
||||
for (var _u = 0, _v = [{ name: "mower", skills: { primary: "mowing", secondary: "none" } },
|
||||
{ name: "trimmer", skills: { primary: "trimming", secondary: "edging" } }]; _u < _v.length; _u++) {
|
||||
_w = _v[_u].skills, _x = _w === void 0 ? { primary: "nosKill", secondary: "noSkill" } : _w, _y = _x.primary, primaryA = _y === void 0 ? "primary" : _y, _z = _x.secondary, secondaryA = _z === void 0 ? "secondary" : _z;
|
||||
console.log(primaryA);
|
||||
}
|
||||
for (var _0 = 0, robots_2 = robots; _0 < robots_2.length; _0++) {
|
||||
_1 = robots_2[_0].name, name = _1 === void 0 ? "noName" : _1;
|
||||
console.log(nameA);
|
||||
}
|
||||
for (var _2 = 0, _3 = getRobots(); _2 < _3.length; _2++) {
|
||||
_4 = _3[_2].name, name = _4 === void 0 ? "noName" : _4;
|
||||
console.log(nameA);
|
||||
}
|
||||
for (var _5 = 0, _6 = [{ name: "mower", skill: "mowing" }, { name: "trimmer", skill: "trimming" }]; _5 < _6.length; _5++) {
|
||||
_7 = _6[_5].name, name = _7 === void 0 ? "noName" : _7;
|
||||
console.log(nameA);
|
||||
}
|
||||
for (var _8 = 0, multiRobots_2 = multiRobots; _8 < multiRobots_2.length; _8++) {
|
||||
_9 = multiRobots_2[_8].skills, _10 = _9 === void 0 ? { primary: "noSkill", secondary: "noSkill" } : _9, _11 = _10.primary, primary = _11 === void 0 ? "primary" : _11, _12 = _10.secondary, secondary = _12 === void 0 ? "secondary" : _12;
|
||||
console.log(primaryA);
|
||||
}
|
||||
for (var _13 = 0, _14 = getMultiRobots(); _13 < _14.length; _13++) {
|
||||
_15 = _14[_13].skills, _16 = _15 === void 0 ? { primary: "noSkill", secondary: "noSkill" } : _15, _17 = _16.primary, primary = _17 === void 0 ? "primary" : _17, _18 = _16.secondary, secondary = _18 === void 0 ? "secondary" : _18;
|
||||
console.log(primaryA);
|
||||
}
|
||||
for (var _19 = 0, _20 = [{ name: "mower", skills: { primary: "mowing", secondary: "none" } },
|
||||
{ name: "trimmer", skills: { primary: "trimming", secondary: "edging" } }]; _19 < _20.length; _19++) {
|
||||
_21 = _20[_19].skills, _22 = _21 === void 0 ? { primary: "noSkill", secondary: "noSkill" } : _21, _23 = _22.primary, primary = _23 === void 0 ? "primary" : _23, _24 = _22.secondary, secondary = _24 === void 0 ? "secondary" : _24;
|
||||
console.log(primaryA);
|
||||
}
|
||||
for (var _25 = 0, robots_3 = robots; _25 < robots_3.length; _25++) {
|
||||
_26 = robots_3[_25], _27 = _26.name, nameA = _27 === void 0 ? "noName" : _27, _28 = _26.skill, skillA = _28 === void 0 ? "noSkill" : _28;
|
||||
console.log(nameA);
|
||||
}
|
||||
for (var _29 = 0, _30 = getRobots(); _29 < _30.length; _29++) {
|
||||
_31 = _30[_29], _32 = _31.name, nameA = _32 === void 0 ? "noName" : _32, _33 = _31.skill, skillA = _33 === void 0 ? "noSkill" : _33;
|
||||
console.log(nameA);
|
||||
}
|
||||
for (var _34 = 0, _35 = [{ name: "mower", skill: "mowing" }, { name: "trimmer", skill: "trimming" }]; _34 < _35.length; _34++) {
|
||||
_36 = _35[_34], _37 = _36.name, nameA = _37 === void 0 ? "noName" : _37, _38 = _36.skill, skillA = _38 === void 0 ? "noSkill" : _38;
|
||||
console.log(nameA);
|
||||
}
|
||||
for (var _39 = 0, multiRobots_3 = multiRobots; _39 < multiRobots_3.length; _39++) {
|
||||
_40 = multiRobots_3[_39], _41 = _40.name, nameA = _41 === void 0 ? "noName" : _41, _42 = _40.skills, _43 = _42 === void 0 ? { primary: "noSkill", secondary: "noSkill" } : _42, _44 = _43.primary, primaryA = _44 === void 0 ? "primary" : _44, _45 = _43.secondary, secondaryA = _45 === void 0 ? "secondary" : _45;
|
||||
console.log(nameA);
|
||||
}
|
||||
for (var _46 = 0, _47 = getMultiRobots(); _46 < _47.length; _46++) {
|
||||
_48 = _47[_46], _49 = _48.name, nameA = _49 === void 0 ? "noName" : _49, _50 = _48.skills, _51 = _50 === void 0 ? { primary: "noSkill", secondary: "noSkill" } : _50, _52 = _51.primary, primaryA = _52 === void 0 ? "primary" : _52, _53 = _51.secondary, secondaryA = _53 === void 0 ? "secondary" : _53;
|
||||
console.log(nameA);
|
||||
}
|
||||
for (var _54 = 0, _55 = [{ name: "mower", skills: { primary: "mowing", secondary: "none" } },
|
||||
{ name: "trimmer", skills: { primary: "trimming", secondary: "edging" } }]; _54 < _55.length; _54++) {
|
||||
_56 = _55[_54], _57 = _56.name, nameA = _57 === void 0 ? "noName" : _57, _58 = _56.skills, _59 = _58 === void 0 ? { primary: "noSkill", secondary: "noSkill" } : _58, _60 = _59.primary, primaryA = _60 === void 0 ? "primary" : _60, _61 = _59.secondary, secondaryA = _61 === void 0 ? "secondary" : _61;
|
||||
console.log(nameA);
|
||||
}
|
||||
for (var _62 = 0, robots_4 = robots; _62 < robots_4.length; _62++) {
|
||||
_63 = robots_4[_62], _64 = _63.name, name = _64 === void 0 ? "noName" : _64, _65 = _63.skill, skill = _65 === void 0 ? "noSkill" : _65;
|
||||
console.log(nameA);
|
||||
}
|
||||
for (var _66 = 0, _67 = getRobots(); _66 < _67.length; _66++) {
|
||||
_68 = _67[_66], _69 = _68.name, name = _69 === void 0 ? "noName" : _69, _70 = _68.skill, skill = _70 === void 0 ? "noSkill" : _70;
|
||||
console.log(nameA);
|
||||
}
|
||||
for (var _71 = 0, _72 = [{ name: "mower", skill: "mowing" }, { name: "trimmer", skill: "trimming" }]; _71 < _72.length; _71++) {
|
||||
_73 = _72[_71], _74 = _73.name, name = _74 === void 0 ? "noName" : _74, _75 = _73.skill, skill = _75 === void 0 ? "noSkill" : _75;
|
||||
console.log(nameA);
|
||||
}
|
||||
for (var _76 = 0, multiRobots_4 = multiRobots; _76 < multiRobots_4.length; _76++) {
|
||||
_77 = multiRobots_4[_76], _78 = _77.name, name = _78 === void 0 ? "noName" : _78, _79 = _77.skills, _80 = _79 === void 0 ? { primary: "noSkill", secondary: "noSkill" } : _79, _81 = _80.primary, primary = _81 === void 0 ? "primary" : _81, _82 = _80.secondary, secondary = _82 === void 0 ? "secondary" : _82;
|
||||
console.log(nameA);
|
||||
}
|
||||
for (var _83 = 0, _84 = getMultiRobots(); _83 < _84.length; _83++) {
|
||||
_85 = _84[_83], _86 = _85.name, name = _86 === void 0 ? "noName" : _86, _87 = _85.skills, _88 = _87 === void 0 ? { primary: "noSkill", secondary: "noSkill" } : _87, _89 = _88.primary, primary = _89 === void 0 ? "primary" : _89, _90 = _88.secondary, secondary = _90 === void 0 ? "secondary" : _90;
|
||||
console.log(nameA);
|
||||
}
|
||||
for (var _91 = 0, _92 = [{ name: "mower", skills: { primary: "mowing", secondary: "none" } },
|
||||
{ name: "trimmer", skills: { primary: "trimming", secondary: "edging" } }]; _91 < _92.length; _91++) {
|
||||
_93 = _92[_91], _94 = _93.name, name = _94 === void 0 ? "noName" : _94, _95 = _93.skills, _96 = _95 === void 0 ? { primary: "noSkill", secondary: "noSkill" } : _95, _97 = _96.primary, primary = _97 === void 0 ? "primary" : _97, _98 = _96.secondary, secondary = _98 === void 0 ? "secondary" : _98;
|
||||
console.log(nameA);
|
||||
}
|
||||
var _a, _d, _g, _j, _k, _l, _m, _q, _r, _s, _t, _w, _x, _y, _z, _1, _4, _7, _9, _10, _11, _12, _15, _16, _17, _18, _21, _22, _23, _24, _26, _27, _28, _31, _32, _33, _36, _37, _38, _40, _41, _42, _43, _44, _45, _48, _49, _50, _51, _52, _53, _56, _57, _58, _59, _60, _61, _63, _64, _65, _68, _69, _70, _73, _74, _75, _77, _78, _79, _80, _81, _82, _85, _86, _87, _88, _89, _90, _93, _94, _95, _96, _97, _98;
|
||||
//# sourceMappingURL=sourceMapValidationDestructuringForOfObjectBindingPatternDefaultValues2.js.map
|
||||
File diff suppressed because one or more lines are too long
File diff suppressed because it is too large
Load Diff
@@ -0,0 +1,564 @@
|
||||
=== tests/cases/compiler/sourceMapValidationDestructuringForOfObjectBindingPatternDefaultValues2.ts ===
|
||||
declare var console: {
|
||||
>console : Symbol(console, Decl(sourceMapValidationDestructuringForOfObjectBindingPatternDefaultValues2.ts, 0, 11))
|
||||
|
||||
log(msg: any): void;
|
||||
>log : Symbol(log, Decl(sourceMapValidationDestructuringForOfObjectBindingPatternDefaultValues2.ts, 0, 22))
|
||||
>msg : Symbol(msg, Decl(sourceMapValidationDestructuringForOfObjectBindingPatternDefaultValues2.ts, 1, 8))
|
||||
}
|
||||
interface Robot {
|
||||
>Robot : Symbol(Robot, Decl(sourceMapValidationDestructuringForOfObjectBindingPatternDefaultValues2.ts, 2, 1))
|
||||
|
||||
name: string;
|
||||
>name : Symbol(name, Decl(sourceMapValidationDestructuringForOfObjectBindingPatternDefaultValues2.ts, 3, 17))
|
||||
|
||||
skill: string;
|
||||
>skill : Symbol(skill, Decl(sourceMapValidationDestructuringForOfObjectBindingPatternDefaultValues2.ts, 4, 17))
|
||||
}
|
||||
|
||||
interface MultiRobot {
|
||||
>MultiRobot : Symbol(MultiRobot, Decl(sourceMapValidationDestructuringForOfObjectBindingPatternDefaultValues2.ts, 6, 1))
|
||||
|
||||
name: string;
|
||||
>name : Symbol(name, Decl(sourceMapValidationDestructuringForOfObjectBindingPatternDefaultValues2.ts, 8, 22))
|
||||
|
||||
skills: {
|
||||
>skills : Symbol(skills, Decl(sourceMapValidationDestructuringForOfObjectBindingPatternDefaultValues2.ts, 9, 17))
|
||||
|
||||
primary: string;
|
||||
>primary : Symbol(primary, Decl(sourceMapValidationDestructuringForOfObjectBindingPatternDefaultValues2.ts, 10, 13))
|
||||
|
||||
secondary: string;
|
||||
>secondary : Symbol(secondary, Decl(sourceMapValidationDestructuringForOfObjectBindingPatternDefaultValues2.ts, 11, 24))
|
||||
|
||||
};
|
||||
}
|
||||
|
||||
let robots: Robot[] = [{ name: "mower", skill: "mowing" }, { name: "trimmer", skill: "trimming" }];
|
||||
>robots : Symbol(robots, Decl(sourceMapValidationDestructuringForOfObjectBindingPatternDefaultValues2.ts, 16, 3))
|
||||
>Robot : Symbol(Robot, Decl(sourceMapValidationDestructuringForOfObjectBindingPatternDefaultValues2.ts, 2, 1))
|
||||
>name : Symbol(name, Decl(sourceMapValidationDestructuringForOfObjectBindingPatternDefaultValues2.ts, 16, 24))
|
||||
>skill : Symbol(skill, Decl(sourceMapValidationDestructuringForOfObjectBindingPatternDefaultValues2.ts, 16, 39))
|
||||
>name : Symbol(name, Decl(sourceMapValidationDestructuringForOfObjectBindingPatternDefaultValues2.ts, 16, 60))
|
||||
>skill : Symbol(skill, Decl(sourceMapValidationDestructuringForOfObjectBindingPatternDefaultValues2.ts, 16, 77))
|
||||
|
||||
let multiRobots: MultiRobot[] = [{ name: "mower", skills: { primary: "mowing", secondary: "none" } },
|
||||
>multiRobots : Symbol(multiRobots, Decl(sourceMapValidationDestructuringForOfObjectBindingPatternDefaultValues2.ts, 17, 3))
|
||||
>MultiRobot : Symbol(MultiRobot, Decl(sourceMapValidationDestructuringForOfObjectBindingPatternDefaultValues2.ts, 6, 1))
|
||||
>name : Symbol(name, Decl(sourceMapValidationDestructuringForOfObjectBindingPatternDefaultValues2.ts, 17, 34))
|
||||
>skills : Symbol(skills, Decl(sourceMapValidationDestructuringForOfObjectBindingPatternDefaultValues2.ts, 17, 49))
|
||||
>primary : Symbol(primary, Decl(sourceMapValidationDestructuringForOfObjectBindingPatternDefaultValues2.ts, 17, 59))
|
||||
>secondary : Symbol(secondary, Decl(sourceMapValidationDestructuringForOfObjectBindingPatternDefaultValues2.ts, 17, 78))
|
||||
|
||||
{ name: "trimmer", skills: { primary: "trimming", secondary: "edging" } }];
|
||||
>name : Symbol(name, Decl(sourceMapValidationDestructuringForOfObjectBindingPatternDefaultValues2.ts, 18, 5))
|
||||
>skills : Symbol(skills, Decl(sourceMapValidationDestructuringForOfObjectBindingPatternDefaultValues2.ts, 18, 22))
|
||||
>primary : Symbol(primary, Decl(sourceMapValidationDestructuringForOfObjectBindingPatternDefaultValues2.ts, 18, 32))
|
||||
>secondary : Symbol(secondary, Decl(sourceMapValidationDestructuringForOfObjectBindingPatternDefaultValues2.ts, 18, 53))
|
||||
|
||||
function getRobots() {
|
||||
>getRobots : Symbol(getRobots, Decl(sourceMapValidationDestructuringForOfObjectBindingPatternDefaultValues2.ts, 18, 79))
|
||||
|
||||
return robots;
|
||||
>robots : Symbol(robots, Decl(sourceMapValidationDestructuringForOfObjectBindingPatternDefaultValues2.ts, 16, 3))
|
||||
}
|
||||
|
||||
function getMultiRobots() {
|
||||
>getMultiRobots : Symbol(getMultiRobots, Decl(sourceMapValidationDestructuringForOfObjectBindingPatternDefaultValues2.ts, 22, 1))
|
||||
|
||||
return multiRobots;
|
||||
>multiRobots : Symbol(multiRobots, Decl(sourceMapValidationDestructuringForOfObjectBindingPatternDefaultValues2.ts, 17, 3))
|
||||
}
|
||||
|
||||
let nameA: string, primaryA: string, secondaryA: string, i: number, skillA: string;
|
||||
>nameA : Symbol(nameA, Decl(sourceMapValidationDestructuringForOfObjectBindingPatternDefaultValues2.ts, 28, 3))
|
||||
>primaryA : Symbol(primaryA, Decl(sourceMapValidationDestructuringForOfObjectBindingPatternDefaultValues2.ts, 28, 18))
|
||||
>secondaryA : Symbol(secondaryA, Decl(sourceMapValidationDestructuringForOfObjectBindingPatternDefaultValues2.ts, 28, 36))
|
||||
>i : Symbol(i, Decl(sourceMapValidationDestructuringForOfObjectBindingPatternDefaultValues2.ts, 28, 56))
|
||||
>skillA : Symbol(skillA, Decl(sourceMapValidationDestructuringForOfObjectBindingPatternDefaultValues2.ts, 28, 67))
|
||||
|
||||
let name: string, primary: string, secondary: string, skill: string;
|
||||
>name : Symbol(name, Decl(sourceMapValidationDestructuringForOfObjectBindingPatternDefaultValues2.ts, 29, 3))
|
||||
>primary : Symbol(primary, Decl(sourceMapValidationDestructuringForOfObjectBindingPatternDefaultValues2.ts, 29, 17))
|
||||
>secondary : Symbol(secondary, Decl(sourceMapValidationDestructuringForOfObjectBindingPatternDefaultValues2.ts, 29, 34))
|
||||
>skill : Symbol(skill, Decl(sourceMapValidationDestructuringForOfObjectBindingPatternDefaultValues2.ts, 29, 53))
|
||||
|
||||
for ({name: nameA = "noName" } of robots) {
|
||||
>name : Symbol(name, Decl(sourceMapValidationDestructuringForOfObjectBindingPatternDefaultValues2.ts, 31, 6))
|
||||
>nameA : Symbol(nameA, Decl(sourceMapValidationDestructuringForOfObjectBindingPatternDefaultValues2.ts, 28, 3))
|
||||
>robots : Symbol(robots, Decl(sourceMapValidationDestructuringForOfObjectBindingPatternDefaultValues2.ts, 16, 3))
|
||||
|
||||
console.log(nameA);
|
||||
>console.log : Symbol(log, Decl(sourceMapValidationDestructuringForOfObjectBindingPatternDefaultValues2.ts, 0, 22))
|
||||
>console : Symbol(console, Decl(sourceMapValidationDestructuringForOfObjectBindingPatternDefaultValues2.ts, 0, 11))
|
||||
>log : Symbol(log, Decl(sourceMapValidationDestructuringForOfObjectBindingPatternDefaultValues2.ts, 0, 22))
|
||||
>nameA : Symbol(nameA, Decl(sourceMapValidationDestructuringForOfObjectBindingPatternDefaultValues2.ts, 28, 3))
|
||||
}
|
||||
for ({name: nameA = "noName" } of getRobots()) {
|
||||
>name : Symbol(name, Decl(sourceMapValidationDestructuringForOfObjectBindingPatternDefaultValues2.ts, 34, 6))
|
||||
>nameA : Symbol(nameA, Decl(sourceMapValidationDestructuringForOfObjectBindingPatternDefaultValues2.ts, 28, 3))
|
||||
>getRobots : Symbol(getRobots, Decl(sourceMapValidationDestructuringForOfObjectBindingPatternDefaultValues2.ts, 18, 79))
|
||||
|
||||
console.log(nameA);
|
||||
>console.log : Symbol(log, Decl(sourceMapValidationDestructuringForOfObjectBindingPatternDefaultValues2.ts, 0, 22))
|
||||
>console : Symbol(console, Decl(sourceMapValidationDestructuringForOfObjectBindingPatternDefaultValues2.ts, 0, 11))
|
||||
>log : Symbol(log, Decl(sourceMapValidationDestructuringForOfObjectBindingPatternDefaultValues2.ts, 0, 22))
|
||||
>nameA : Symbol(nameA, Decl(sourceMapValidationDestructuringForOfObjectBindingPatternDefaultValues2.ts, 28, 3))
|
||||
}
|
||||
for ({name: nameA = "noName" } of [{ name: "mower", skill: "mowing" }, { name: "trimmer", skill: "trimming" }]) {
|
||||
>name : Symbol(name, Decl(sourceMapValidationDestructuringForOfObjectBindingPatternDefaultValues2.ts, 37, 6))
|
||||
>nameA : Symbol(nameA, Decl(sourceMapValidationDestructuringForOfObjectBindingPatternDefaultValues2.ts, 28, 3))
|
||||
>name : Symbol(name, Decl(sourceMapValidationDestructuringForOfObjectBindingPatternDefaultValues2.ts, 37, 36))
|
||||
>skill : Symbol(skill, Decl(sourceMapValidationDestructuringForOfObjectBindingPatternDefaultValues2.ts, 37, 51))
|
||||
>name : Symbol(name, Decl(sourceMapValidationDestructuringForOfObjectBindingPatternDefaultValues2.ts, 37, 72))
|
||||
>skill : Symbol(skill, Decl(sourceMapValidationDestructuringForOfObjectBindingPatternDefaultValues2.ts, 37, 89))
|
||||
|
||||
console.log(nameA);
|
||||
>console.log : Symbol(log, Decl(sourceMapValidationDestructuringForOfObjectBindingPatternDefaultValues2.ts, 0, 22))
|
||||
>console : Symbol(console, Decl(sourceMapValidationDestructuringForOfObjectBindingPatternDefaultValues2.ts, 0, 11))
|
||||
>log : Symbol(log, Decl(sourceMapValidationDestructuringForOfObjectBindingPatternDefaultValues2.ts, 0, 22))
|
||||
>nameA : Symbol(nameA, Decl(sourceMapValidationDestructuringForOfObjectBindingPatternDefaultValues2.ts, 28, 3))
|
||||
}
|
||||
for ({ skills: { primary: primaryA = "primary", secondary: secondaryA = "secondary" } =
|
||||
>skills : Symbol(skills, Decl(sourceMapValidationDestructuringForOfObjectBindingPatternDefaultValues2.ts, 40, 6))
|
||||
>primary : Symbol(primary, Decl(sourceMapValidationDestructuringForOfObjectBindingPatternDefaultValues2.ts, 40, 16))
|
||||
>primaryA : Symbol(primaryA, Decl(sourceMapValidationDestructuringForOfObjectBindingPatternDefaultValues2.ts, 28, 18))
|
||||
>secondary : Symbol(secondary, Decl(sourceMapValidationDestructuringForOfObjectBindingPatternDefaultValues2.ts, 40, 47))
|
||||
>secondaryA : Symbol(secondaryA, Decl(sourceMapValidationDestructuringForOfObjectBindingPatternDefaultValues2.ts, 28, 36))
|
||||
|
||||
{ primary: "nosKill", secondary: "noSkill" } } of multiRobots) {
|
||||
>primary : Symbol(primary, Decl(sourceMapValidationDestructuringForOfObjectBindingPatternDefaultValues2.ts, 41, 5))
|
||||
>secondary : Symbol(secondary, Decl(sourceMapValidationDestructuringForOfObjectBindingPatternDefaultValues2.ts, 41, 25))
|
||||
>multiRobots : Symbol(multiRobots, Decl(sourceMapValidationDestructuringForOfObjectBindingPatternDefaultValues2.ts, 17, 3))
|
||||
|
||||
console.log(primaryA);
|
||||
>console.log : Symbol(log, Decl(sourceMapValidationDestructuringForOfObjectBindingPatternDefaultValues2.ts, 0, 22))
|
||||
>console : Symbol(console, Decl(sourceMapValidationDestructuringForOfObjectBindingPatternDefaultValues2.ts, 0, 11))
|
||||
>log : Symbol(log, Decl(sourceMapValidationDestructuringForOfObjectBindingPatternDefaultValues2.ts, 0, 22))
|
||||
>primaryA : Symbol(primaryA, Decl(sourceMapValidationDestructuringForOfObjectBindingPatternDefaultValues2.ts, 28, 18))
|
||||
}
|
||||
for ({ skills: { primary: primaryA = "primary", secondary: secondaryA = "secondary" } =
|
||||
>skills : Symbol(skills, Decl(sourceMapValidationDestructuringForOfObjectBindingPatternDefaultValues2.ts, 44, 6))
|
||||
>primary : Symbol(primary, Decl(sourceMapValidationDestructuringForOfObjectBindingPatternDefaultValues2.ts, 44, 16))
|
||||
>primaryA : Symbol(primaryA, Decl(sourceMapValidationDestructuringForOfObjectBindingPatternDefaultValues2.ts, 28, 18))
|
||||
>secondary : Symbol(secondary, Decl(sourceMapValidationDestructuringForOfObjectBindingPatternDefaultValues2.ts, 44, 47))
|
||||
>secondaryA : Symbol(secondaryA, Decl(sourceMapValidationDestructuringForOfObjectBindingPatternDefaultValues2.ts, 28, 36))
|
||||
|
||||
{ primary: "nosKill", secondary: "noSkill" } } of getMultiRobots()) {
|
||||
>primary : Symbol(primary, Decl(sourceMapValidationDestructuringForOfObjectBindingPatternDefaultValues2.ts, 45, 5))
|
||||
>secondary : Symbol(secondary, Decl(sourceMapValidationDestructuringForOfObjectBindingPatternDefaultValues2.ts, 45, 25))
|
||||
>getMultiRobots : Symbol(getMultiRobots, Decl(sourceMapValidationDestructuringForOfObjectBindingPatternDefaultValues2.ts, 22, 1))
|
||||
|
||||
console.log(primaryA);
|
||||
>console.log : Symbol(log, Decl(sourceMapValidationDestructuringForOfObjectBindingPatternDefaultValues2.ts, 0, 22))
|
||||
>console : Symbol(console, Decl(sourceMapValidationDestructuringForOfObjectBindingPatternDefaultValues2.ts, 0, 11))
|
||||
>log : Symbol(log, Decl(sourceMapValidationDestructuringForOfObjectBindingPatternDefaultValues2.ts, 0, 22))
|
||||
>primaryA : Symbol(primaryA, Decl(sourceMapValidationDestructuringForOfObjectBindingPatternDefaultValues2.ts, 28, 18))
|
||||
}
|
||||
for ({ skills: { primary: primaryA = "primary", secondary: secondaryA = "secondary" } =
|
||||
>skills : Symbol(skills, Decl(sourceMapValidationDestructuringForOfObjectBindingPatternDefaultValues2.ts, 48, 6))
|
||||
>primary : Symbol(primary, Decl(sourceMapValidationDestructuringForOfObjectBindingPatternDefaultValues2.ts, 48, 16))
|
||||
>primaryA : Symbol(primaryA, Decl(sourceMapValidationDestructuringForOfObjectBindingPatternDefaultValues2.ts, 28, 18))
|
||||
>secondary : Symbol(secondary, Decl(sourceMapValidationDestructuringForOfObjectBindingPatternDefaultValues2.ts, 48, 47))
|
||||
>secondaryA : Symbol(secondaryA, Decl(sourceMapValidationDestructuringForOfObjectBindingPatternDefaultValues2.ts, 28, 36))
|
||||
|
||||
{ primary: "nosKill", secondary: "noSkill" } } of
|
||||
>primary : Symbol(primary, Decl(sourceMapValidationDestructuringForOfObjectBindingPatternDefaultValues2.ts, 49, 5))
|
||||
>secondary : Symbol(secondary, Decl(sourceMapValidationDestructuringForOfObjectBindingPatternDefaultValues2.ts, 49, 25))
|
||||
|
||||
<MultiRobot[]>[{ name: "mower", skills: { primary: "mowing", secondary: "none" } },
|
||||
>MultiRobot : Symbol(MultiRobot, Decl(sourceMapValidationDestructuringForOfObjectBindingPatternDefaultValues2.ts, 6, 1))
|
||||
>name : Symbol(name, Decl(sourceMapValidationDestructuringForOfObjectBindingPatternDefaultValues2.ts, 50, 20))
|
||||
>skills : Symbol(skills, Decl(sourceMapValidationDestructuringForOfObjectBindingPatternDefaultValues2.ts, 50, 35))
|
||||
>primary : Symbol(primary, Decl(sourceMapValidationDestructuringForOfObjectBindingPatternDefaultValues2.ts, 50, 45))
|
||||
>secondary : Symbol(secondary, Decl(sourceMapValidationDestructuringForOfObjectBindingPatternDefaultValues2.ts, 50, 64))
|
||||
|
||||
{ name: "trimmer", skills: { primary: "trimming", secondary: "edging" } }]) {
|
||||
>name : Symbol(name, Decl(sourceMapValidationDestructuringForOfObjectBindingPatternDefaultValues2.ts, 51, 9))
|
||||
>skills : Symbol(skills, Decl(sourceMapValidationDestructuringForOfObjectBindingPatternDefaultValues2.ts, 51, 26))
|
||||
>primary : Symbol(primary, Decl(sourceMapValidationDestructuringForOfObjectBindingPatternDefaultValues2.ts, 51, 36))
|
||||
>secondary : Symbol(secondary, Decl(sourceMapValidationDestructuringForOfObjectBindingPatternDefaultValues2.ts, 51, 57))
|
||||
|
||||
console.log(primaryA);
|
||||
>console.log : Symbol(log, Decl(sourceMapValidationDestructuringForOfObjectBindingPatternDefaultValues2.ts, 0, 22))
|
||||
>console : Symbol(console, Decl(sourceMapValidationDestructuringForOfObjectBindingPatternDefaultValues2.ts, 0, 11))
|
||||
>log : Symbol(log, Decl(sourceMapValidationDestructuringForOfObjectBindingPatternDefaultValues2.ts, 0, 22))
|
||||
>primaryA : Symbol(primaryA, Decl(sourceMapValidationDestructuringForOfObjectBindingPatternDefaultValues2.ts, 28, 18))
|
||||
}
|
||||
|
||||
for ({ name = "noName" } of robots) {
|
||||
>name : Symbol(name, Decl(sourceMapValidationDestructuringForOfObjectBindingPatternDefaultValues2.ts, 55, 6))
|
||||
>robots : Symbol(robots, Decl(sourceMapValidationDestructuringForOfObjectBindingPatternDefaultValues2.ts, 16, 3))
|
||||
|
||||
console.log(nameA);
|
||||
>console.log : Symbol(log, Decl(sourceMapValidationDestructuringForOfObjectBindingPatternDefaultValues2.ts, 0, 22))
|
||||
>console : Symbol(console, Decl(sourceMapValidationDestructuringForOfObjectBindingPatternDefaultValues2.ts, 0, 11))
|
||||
>log : Symbol(log, Decl(sourceMapValidationDestructuringForOfObjectBindingPatternDefaultValues2.ts, 0, 22))
|
||||
>nameA : Symbol(nameA, Decl(sourceMapValidationDestructuringForOfObjectBindingPatternDefaultValues2.ts, 28, 3))
|
||||
}
|
||||
for ({ name = "noName" } of getRobots()) {
|
||||
>name : Symbol(name, Decl(sourceMapValidationDestructuringForOfObjectBindingPatternDefaultValues2.ts, 58, 6))
|
||||
>getRobots : Symbol(getRobots, Decl(sourceMapValidationDestructuringForOfObjectBindingPatternDefaultValues2.ts, 18, 79))
|
||||
|
||||
console.log(nameA);
|
||||
>console.log : Symbol(log, Decl(sourceMapValidationDestructuringForOfObjectBindingPatternDefaultValues2.ts, 0, 22))
|
||||
>console : Symbol(console, Decl(sourceMapValidationDestructuringForOfObjectBindingPatternDefaultValues2.ts, 0, 11))
|
||||
>log : Symbol(log, Decl(sourceMapValidationDestructuringForOfObjectBindingPatternDefaultValues2.ts, 0, 22))
|
||||
>nameA : Symbol(nameA, Decl(sourceMapValidationDestructuringForOfObjectBindingPatternDefaultValues2.ts, 28, 3))
|
||||
}
|
||||
for ({ name = "noName" } of [{ name: "mower", skill: "mowing" }, { name: "trimmer", skill: "trimming" }]) {
|
||||
>name : Symbol(name, Decl(sourceMapValidationDestructuringForOfObjectBindingPatternDefaultValues2.ts, 61, 6))
|
||||
>name : Symbol(name, Decl(sourceMapValidationDestructuringForOfObjectBindingPatternDefaultValues2.ts, 61, 30))
|
||||
>skill : Symbol(skill, Decl(sourceMapValidationDestructuringForOfObjectBindingPatternDefaultValues2.ts, 61, 45))
|
||||
>name : Symbol(name, Decl(sourceMapValidationDestructuringForOfObjectBindingPatternDefaultValues2.ts, 61, 66))
|
||||
>skill : Symbol(skill, Decl(sourceMapValidationDestructuringForOfObjectBindingPatternDefaultValues2.ts, 61, 83))
|
||||
|
||||
console.log(nameA);
|
||||
>console.log : Symbol(log, Decl(sourceMapValidationDestructuringForOfObjectBindingPatternDefaultValues2.ts, 0, 22))
|
||||
>console : Symbol(console, Decl(sourceMapValidationDestructuringForOfObjectBindingPatternDefaultValues2.ts, 0, 11))
|
||||
>log : Symbol(log, Decl(sourceMapValidationDestructuringForOfObjectBindingPatternDefaultValues2.ts, 0, 22))
|
||||
>nameA : Symbol(nameA, Decl(sourceMapValidationDestructuringForOfObjectBindingPatternDefaultValues2.ts, 28, 3))
|
||||
}
|
||||
for ({
|
||||
skills: {
|
||||
>skills : Symbol(skills, Decl(sourceMapValidationDestructuringForOfObjectBindingPatternDefaultValues2.ts, 64, 6))
|
||||
|
||||
primary = "primary",
|
||||
>primary : Symbol(primary, Decl(sourceMapValidationDestructuringForOfObjectBindingPatternDefaultValues2.ts, 65, 13))
|
||||
|
||||
secondary = "secondary"
|
||||
>secondary : Symbol(secondary, Decl(sourceMapValidationDestructuringForOfObjectBindingPatternDefaultValues2.ts, 66, 28))
|
||||
|
||||
} = { primary: "noSkill", secondary: "noSkill" }
|
||||
>primary : Symbol(primary, Decl(sourceMapValidationDestructuringForOfObjectBindingPatternDefaultValues2.ts, 68, 9))
|
||||
>secondary : Symbol(secondary, Decl(sourceMapValidationDestructuringForOfObjectBindingPatternDefaultValues2.ts, 68, 29))
|
||||
|
||||
} of multiRobots) {
|
||||
>multiRobots : Symbol(multiRobots, Decl(sourceMapValidationDestructuringForOfObjectBindingPatternDefaultValues2.ts, 17, 3))
|
||||
|
||||
console.log(primaryA);
|
||||
>console.log : Symbol(log, Decl(sourceMapValidationDestructuringForOfObjectBindingPatternDefaultValues2.ts, 0, 22))
|
||||
>console : Symbol(console, Decl(sourceMapValidationDestructuringForOfObjectBindingPatternDefaultValues2.ts, 0, 11))
|
||||
>log : Symbol(log, Decl(sourceMapValidationDestructuringForOfObjectBindingPatternDefaultValues2.ts, 0, 22))
|
||||
>primaryA : Symbol(primaryA, Decl(sourceMapValidationDestructuringForOfObjectBindingPatternDefaultValues2.ts, 28, 18))
|
||||
}
|
||||
for ({
|
||||
skills: {
|
||||
>skills : Symbol(skills, Decl(sourceMapValidationDestructuringForOfObjectBindingPatternDefaultValues2.ts, 72, 6))
|
||||
|
||||
primary = "primary",
|
||||
>primary : Symbol(primary, Decl(sourceMapValidationDestructuringForOfObjectBindingPatternDefaultValues2.ts, 73, 13))
|
||||
|
||||
secondary = "secondary"
|
||||
>secondary : Symbol(secondary, Decl(sourceMapValidationDestructuringForOfObjectBindingPatternDefaultValues2.ts, 74, 28))
|
||||
|
||||
} = { primary: "noSkill", secondary: "noSkill" }
|
||||
>primary : Symbol(primary, Decl(sourceMapValidationDestructuringForOfObjectBindingPatternDefaultValues2.ts, 76, 9))
|
||||
>secondary : Symbol(secondary, Decl(sourceMapValidationDestructuringForOfObjectBindingPatternDefaultValues2.ts, 76, 29))
|
||||
|
||||
} of getMultiRobots()) {
|
||||
>getMultiRobots : Symbol(getMultiRobots, Decl(sourceMapValidationDestructuringForOfObjectBindingPatternDefaultValues2.ts, 22, 1))
|
||||
|
||||
console.log(primaryA);
|
||||
>console.log : Symbol(log, Decl(sourceMapValidationDestructuringForOfObjectBindingPatternDefaultValues2.ts, 0, 22))
|
||||
>console : Symbol(console, Decl(sourceMapValidationDestructuringForOfObjectBindingPatternDefaultValues2.ts, 0, 11))
|
||||
>log : Symbol(log, Decl(sourceMapValidationDestructuringForOfObjectBindingPatternDefaultValues2.ts, 0, 22))
|
||||
>primaryA : Symbol(primaryA, Decl(sourceMapValidationDestructuringForOfObjectBindingPatternDefaultValues2.ts, 28, 18))
|
||||
}
|
||||
for ({
|
||||
skills: {
|
||||
>skills : Symbol(skills, Decl(sourceMapValidationDestructuringForOfObjectBindingPatternDefaultValues2.ts, 80, 6))
|
||||
|
||||
primary = "primary",
|
||||
>primary : Symbol(primary, Decl(sourceMapValidationDestructuringForOfObjectBindingPatternDefaultValues2.ts, 81, 13))
|
||||
|
||||
secondary = "secondary"
|
||||
>secondary : Symbol(secondary, Decl(sourceMapValidationDestructuringForOfObjectBindingPatternDefaultValues2.ts, 82, 28))
|
||||
|
||||
} = { primary: "noSkill", secondary: "noSkill" }
|
||||
>primary : Symbol(primary, Decl(sourceMapValidationDestructuringForOfObjectBindingPatternDefaultValues2.ts, 84, 9))
|
||||
>secondary : Symbol(secondary, Decl(sourceMapValidationDestructuringForOfObjectBindingPatternDefaultValues2.ts, 84, 29))
|
||||
|
||||
} of [{ name: "mower", skills: { primary: "mowing", secondary: "none" } },
|
||||
>name : Symbol(name, Decl(sourceMapValidationDestructuringForOfObjectBindingPatternDefaultValues2.ts, 85, 7))
|
||||
>skills : Symbol(skills, Decl(sourceMapValidationDestructuringForOfObjectBindingPatternDefaultValues2.ts, 85, 22))
|
||||
>primary : Symbol(primary, Decl(sourceMapValidationDestructuringForOfObjectBindingPatternDefaultValues2.ts, 85, 32))
|
||||
>secondary : Symbol(secondary, Decl(sourceMapValidationDestructuringForOfObjectBindingPatternDefaultValues2.ts, 85, 51))
|
||||
|
||||
{ name: "trimmer", skills: { primary: "trimming", secondary: "edging" } }]) {
|
||||
>name : Symbol(name, Decl(sourceMapValidationDestructuringForOfObjectBindingPatternDefaultValues2.ts, 86, 5))
|
||||
>skills : Symbol(skills, Decl(sourceMapValidationDestructuringForOfObjectBindingPatternDefaultValues2.ts, 86, 22))
|
||||
>primary : Symbol(primary, Decl(sourceMapValidationDestructuringForOfObjectBindingPatternDefaultValues2.ts, 86, 32))
|
||||
>secondary : Symbol(secondary, Decl(sourceMapValidationDestructuringForOfObjectBindingPatternDefaultValues2.ts, 86, 53))
|
||||
|
||||
console.log(primaryA);
|
||||
>console.log : Symbol(log, Decl(sourceMapValidationDestructuringForOfObjectBindingPatternDefaultValues2.ts, 0, 22))
|
||||
>console : Symbol(console, Decl(sourceMapValidationDestructuringForOfObjectBindingPatternDefaultValues2.ts, 0, 11))
|
||||
>log : Symbol(log, Decl(sourceMapValidationDestructuringForOfObjectBindingPatternDefaultValues2.ts, 0, 22))
|
||||
>primaryA : Symbol(primaryA, Decl(sourceMapValidationDestructuringForOfObjectBindingPatternDefaultValues2.ts, 28, 18))
|
||||
}
|
||||
|
||||
|
||||
for ({name: nameA = "noName", skill: skillA = "noSkill" } of robots) {
|
||||
>name : Symbol(name, Decl(sourceMapValidationDestructuringForOfObjectBindingPatternDefaultValues2.ts, 91, 6))
|
||||
>nameA : Symbol(nameA, Decl(sourceMapValidationDestructuringForOfObjectBindingPatternDefaultValues2.ts, 28, 3))
|
||||
>skill : Symbol(skill, Decl(sourceMapValidationDestructuringForOfObjectBindingPatternDefaultValues2.ts, 91, 29))
|
||||
>skillA : Symbol(skillA, Decl(sourceMapValidationDestructuringForOfObjectBindingPatternDefaultValues2.ts, 28, 67))
|
||||
>robots : Symbol(robots, Decl(sourceMapValidationDestructuringForOfObjectBindingPatternDefaultValues2.ts, 16, 3))
|
||||
|
||||
console.log(nameA);
|
||||
>console.log : Symbol(log, Decl(sourceMapValidationDestructuringForOfObjectBindingPatternDefaultValues2.ts, 0, 22))
|
||||
>console : Symbol(console, Decl(sourceMapValidationDestructuringForOfObjectBindingPatternDefaultValues2.ts, 0, 11))
|
||||
>log : Symbol(log, Decl(sourceMapValidationDestructuringForOfObjectBindingPatternDefaultValues2.ts, 0, 22))
|
||||
>nameA : Symbol(nameA, Decl(sourceMapValidationDestructuringForOfObjectBindingPatternDefaultValues2.ts, 28, 3))
|
||||
}
|
||||
for ({name: nameA = "noName", skill: skillA = "noSkill" } of getRobots()) {
|
||||
>name : Symbol(name, Decl(sourceMapValidationDestructuringForOfObjectBindingPatternDefaultValues2.ts, 94, 6))
|
||||
>nameA : Symbol(nameA, Decl(sourceMapValidationDestructuringForOfObjectBindingPatternDefaultValues2.ts, 28, 3))
|
||||
>skill : Symbol(skill, Decl(sourceMapValidationDestructuringForOfObjectBindingPatternDefaultValues2.ts, 94, 29))
|
||||
>skillA : Symbol(skillA, Decl(sourceMapValidationDestructuringForOfObjectBindingPatternDefaultValues2.ts, 28, 67))
|
||||
>getRobots : Symbol(getRobots, Decl(sourceMapValidationDestructuringForOfObjectBindingPatternDefaultValues2.ts, 18, 79))
|
||||
|
||||
console.log(nameA);
|
||||
>console.log : Symbol(log, Decl(sourceMapValidationDestructuringForOfObjectBindingPatternDefaultValues2.ts, 0, 22))
|
||||
>console : Symbol(console, Decl(sourceMapValidationDestructuringForOfObjectBindingPatternDefaultValues2.ts, 0, 11))
|
||||
>log : Symbol(log, Decl(sourceMapValidationDestructuringForOfObjectBindingPatternDefaultValues2.ts, 0, 22))
|
||||
>nameA : Symbol(nameA, Decl(sourceMapValidationDestructuringForOfObjectBindingPatternDefaultValues2.ts, 28, 3))
|
||||
}
|
||||
for ({name: nameA = "noName", skill: skillA = "noSkill" } of [{ name: "mower", skill: "mowing" }, { name: "trimmer", skill: "trimming" }]) {
|
||||
>name : Symbol(name, Decl(sourceMapValidationDestructuringForOfObjectBindingPatternDefaultValues2.ts, 97, 6))
|
||||
>nameA : Symbol(nameA, Decl(sourceMapValidationDestructuringForOfObjectBindingPatternDefaultValues2.ts, 28, 3))
|
||||
>skill : Symbol(skill, Decl(sourceMapValidationDestructuringForOfObjectBindingPatternDefaultValues2.ts, 97, 29))
|
||||
>skillA : Symbol(skillA, Decl(sourceMapValidationDestructuringForOfObjectBindingPatternDefaultValues2.ts, 28, 67))
|
||||
>name : Symbol(name, Decl(sourceMapValidationDestructuringForOfObjectBindingPatternDefaultValues2.ts, 97, 64))
|
||||
>skill : Symbol(skill, Decl(sourceMapValidationDestructuringForOfObjectBindingPatternDefaultValues2.ts, 97, 79))
|
||||
>name : Symbol(name, Decl(sourceMapValidationDestructuringForOfObjectBindingPatternDefaultValues2.ts, 97, 100))
|
||||
>skill : Symbol(skill, Decl(sourceMapValidationDestructuringForOfObjectBindingPatternDefaultValues2.ts, 97, 117))
|
||||
|
||||
console.log(nameA);
|
||||
>console.log : Symbol(log, Decl(sourceMapValidationDestructuringForOfObjectBindingPatternDefaultValues2.ts, 0, 22))
|
||||
>console : Symbol(console, Decl(sourceMapValidationDestructuringForOfObjectBindingPatternDefaultValues2.ts, 0, 11))
|
||||
>log : Symbol(log, Decl(sourceMapValidationDestructuringForOfObjectBindingPatternDefaultValues2.ts, 0, 22))
|
||||
>nameA : Symbol(nameA, Decl(sourceMapValidationDestructuringForOfObjectBindingPatternDefaultValues2.ts, 28, 3))
|
||||
}
|
||||
for ({
|
||||
name: nameA = "noName",
|
||||
>name : Symbol(name, Decl(sourceMapValidationDestructuringForOfObjectBindingPatternDefaultValues2.ts, 100, 6))
|
||||
>nameA : Symbol(nameA, Decl(sourceMapValidationDestructuringForOfObjectBindingPatternDefaultValues2.ts, 28, 3))
|
||||
|
||||
skills: {
|
||||
>skills : Symbol(skills, Decl(sourceMapValidationDestructuringForOfObjectBindingPatternDefaultValues2.ts, 101, 27))
|
||||
|
||||
primary: primaryA = "primary",
|
||||
>primary : Symbol(primary, Decl(sourceMapValidationDestructuringForOfObjectBindingPatternDefaultValues2.ts, 102, 13))
|
||||
>primaryA : Symbol(primaryA, Decl(sourceMapValidationDestructuringForOfObjectBindingPatternDefaultValues2.ts, 28, 18))
|
||||
|
||||
secondary: secondaryA = "secondary"
|
||||
>secondary : Symbol(secondary, Decl(sourceMapValidationDestructuringForOfObjectBindingPatternDefaultValues2.ts, 103, 38))
|
||||
>secondaryA : Symbol(secondaryA, Decl(sourceMapValidationDestructuringForOfObjectBindingPatternDefaultValues2.ts, 28, 36))
|
||||
|
||||
} = { primary: "noSkill", secondary: "noSkill" }
|
||||
>primary : Symbol(primary, Decl(sourceMapValidationDestructuringForOfObjectBindingPatternDefaultValues2.ts, 105, 9))
|
||||
>secondary : Symbol(secondary, Decl(sourceMapValidationDestructuringForOfObjectBindingPatternDefaultValues2.ts, 105, 29))
|
||||
|
||||
} of multiRobots) {
|
||||
>multiRobots : Symbol(multiRobots, Decl(sourceMapValidationDestructuringForOfObjectBindingPatternDefaultValues2.ts, 17, 3))
|
||||
|
||||
console.log(nameA);
|
||||
>console.log : Symbol(log, Decl(sourceMapValidationDestructuringForOfObjectBindingPatternDefaultValues2.ts, 0, 22))
|
||||
>console : Symbol(console, Decl(sourceMapValidationDestructuringForOfObjectBindingPatternDefaultValues2.ts, 0, 11))
|
||||
>log : Symbol(log, Decl(sourceMapValidationDestructuringForOfObjectBindingPatternDefaultValues2.ts, 0, 22))
|
||||
>nameA : Symbol(nameA, Decl(sourceMapValidationDestructuringForOfObjectBindingPatternDefaultValues2.ts, 28, 3))
|
||||
}
|
||||
for ({
|
||||
name: nameA = "noName",
|
||||
>name : Symbol(name, Decl(sourceMapValidationDestructuringForOfObjectBindingPatternDefaultValues2.ts, 109, 6))
|
||||
>nameA : Symbol(nameA, Decl(sourceMapValidationDestructuringForOfObjectBindingPatternDefaultValues2.ts, 28, 3))
|
||||
|
||||
skills: {
|
||||
>skills : Symbol(skills, Decl(sourceMapValidationDestructuringForOfObjectBindingPatternDefaultValues2.ts, 110, 27))
|
||||
|
||||
primary: primaryA = "primary",
|
||||
>primary : Symbol(primary, Decl(sourceMapValidationDestructuringForOfObjectBindingPatternDefaultValues2.ts, 111, 13))
|
||||
>primaryA : Symbol(primaryA, Decl(sourceMapValidationDestructuringForOfObjectBindingPatternDefaultValues2.ts, 28, 18))
|
||||
|
||||
secondary: secondaryA = "secondary"
|
||||
>secondary : Symbol(secondary, Decl(sourceMapValidationDestructuringForOfObjectBindingPatternDefaultValues2.ts, 112, 38))
|
||||
>secondaryA : Symbol(secondaryA, Decl(sourceMapValidationDestructuringForOfObjectBindingPatternDefaultValues2.ts, 28, 36))
|
||||
|
||||
} = { primary: "noSkill", secondary: "noSkill" }
|
||||
>primary : Symbol(primary, Decl(sourceMapValidationDestructuringForOfObjectBindingPatternDefaultValues2.ts, 114, 9))
|
||||
>secondary : Symbol(secondary, Decl(sourceMapValidationDestructuringForOfObjectBindingPatternDefaultValues2.ts, 114, 29))
|
||||
|
||||
} of getMultiRobots()) {
|
||||
>getMultiRobots : Symbol(getMultiRobots, Decl(sourceMapValidationDestructuringForOfObjectBindingPatternDefaultValues2.ts, 22, 1))
|
||||
|
||||
console.log(nameA);
|
||||
>console.log : Symbol(log, Decl(sourceMapValidationDestructuringForOfObjectBindingPatternDefaultValues2.ts, 0, 22))
|
||||
>console : Symbol(console, Decl(sourceMapValidationDestructuringForOfObjectBindingPatternDefaultValues2.ts, 0, 11))
|
||||
>log : Symbol(log, Decl(sourceMapValidationDestructuringForOfObjectBindingPatternDefaultValues2.ts, 0, 22))
|
||||
>nameA : Symbol(nameA, Decl(sourceMapValidationDestructuringForOfObjectBindingPatternDefaultValues2.ts, 28, 3))
|
||||
}
|
||||
for ({
|
||||
name: nameA = "noName",
|
||||
>name : Symbol(name, Decl(sourceMapValidationDestructuringForOfObjectBindingPatternDefaultValues2.ts, 118, 6))
|
||||
>nameA : Symbol(nameA, Decl(sourceMapValidationDestructuringForOfObjectBindingPatternDefaultValues2.ts, 28, 3))
|
||||
|
||||
skills: {
|
||||
>skills : Symbol(skills, Decl(sourceMapValidationDestructuringForOfObjectBindingPatternDefaultValues2.ts, 119, 27))
|
||||
|
||||
primary: primaryA = "primary",
|
||||
>primary : Symbol(primary, Decl(sourceMapValidationDestructuringForOfObjectBindingPatternDefaultValues2.ts, 120, 13))
|
||||
>primaryA : Symbol(primaryA, Decl(sourceMapValidationDestructuringForOfObjectBindingPatternDefaultValues2.ts, 28, 18))
|
||||
|
||||
secondary: secondaryA = "secondary"
|
||||
>secondary : Symbol(secondary, Decl(sourceMapValidationDestructuringForOfObjectBindingPatternDefaultValues2.ts, 121, 38))
|
||||
>secondaryA : Symbol(secondaryA, Decl(sourceMapValidationDestructuringForOfObjectBindingPatternDefaultValues2.ts, 28, 36))
|
||||
|
||||
} = { primary: "noSkill", secondary: "noSkill" }
|
||||
>primary : Symbol(primary, Decl(sourceMapValidationDestructuringForOfObjectBindingPatternDefaultValues2.ts, 123, 9))
|
||||
>secondary : Symbol(secondary, Decl(sourceMapValidationDestructuringForOfObjectBindingPatternDefaultValues2.ts, 123, 29))
|
||||
|
||||
} of <MultiRobot[]>[{ name: "mower", skills: { primary: "mowing", secondary: "none" } },
|
||||
>MultiRobot : Symbol(MultiRobot, Decl(sourceMapValidationDestructuringForOfObjectBindingPatternDefaultValues2.ts, 6, 1))
|
||||
>name : Symbol(name, Decl(sourceMapValidationDestructuringForOfObjectBindingPatternDefaultValues2.ts, 124, 21))
|
||||
>skills : Symbol(skills, Decl(sourceMapValidationDestructuringForOfObjectBindingPatternDefaultValues2.ts, 124, 36))
|
||||
>primary : Symbol(primary, Decl(sourceMapValidationDestructuringForOfObjectBindingPatternDefaultValues2.ts, 124, 46))
|
||||
>secondary : Symbol(secondary, Decl(sourceMapValidationDestructuringForOfObjectBindingPatternDefaultValues2.ts, 124, 65))
|
||||
|
||||
{ name: "trimmer", skills: { primary: "trimming", secondary: "edging" } }]) {
|
||||
>name : Symbol(name, Decl(sourceMapValidationDestructuringForOfObjectBindingPatternDefaultValues2.ts, 125, 5))
|
||||
>skills : Symbol(skills, Decl(sourceMapValidationDestructuringForOfObjectBindingPatternDefaultValues2.ts, 125, 22))
|
||||
>primary : Symbol(primary, Decl(sourceMapValidationDestructuringForOfObjectBindingPatternDefaultValues2.ts, 125, 32))
|
||||
>secondary : Symbol(secondary, Decl(sourceMapValidationDestructuringForOfObjectBindingPatternDefaultValues2.ts, 125, 53))
|
||||
|
||||
console.log(nameA);
|
||||
>console.log : Symbol(log, Decl(sourceMapValidationDestructuringForOfObjectBindingPatternDefaultValues2.ts, 0, 22))
|
||||
>console : Symbol(console, Decl(sourceMapValidationDestructuringForOfObjectBindingPatternDefaultValues2.ts, 0, 11))
|
||||
>log : Symbol(log, Decl(sourceMapValidationDestructuringForOfObjectBindingPatternDefaultValues2.ts, 0, 22))
|
||||
>nameA : Symbol(nameA, Decl(sourceMapValidationDestructuringForOfObjectBindingPatternDefaultValues2.ts, 28, 3))
|
||||
}
|
||||
|
||||
for ({ name = "noName", skill = "noSkill" } of robots) {
|
||||
>name : Symbol(name, Decl(sourceMapValidationDestructuringForOfObjectBindingPatternDefaultValues2.ts, 129, 6))
|
||||
>skill : Symbol(skill, Decl(sourceMapValidationDestructuringForOfObjectBindingPatternDefaultValues2.ts, 129, 23))
|
||||
>robots : Symbol(robots, Decl(sourceMapValidationDestructuringForOfObjectBindingPatternDefaultValues2.ts, 16, 3))
|
||||
|
||||
console.log(nameA);
|
||||
>console.log : Symbol(log, Decl(sourceMapValidationDestructuringForOfObjectBindingPatternDefaultValues2.ts, 0, 22))
|
||||
>console : Symbol(console, Decl(sourceMapValidationDestructuringForOfObjectBindingPatternDefaultValues2.ts, 0, 11))
|
||||
>log : Symbol(log, Decl(sourceMapValidationDestructuringForOfObjectBindingPatternDefaultValues2.ts, 0, 22))
|
||||
>nameA : Symbol(nameA, Decl(sourceMapValidationDestructuringForOfObjectBindingPatternDefaultValues2.ts, 28, 3))
|
||||
}
|
||||
for ({ name = "noName", skill = "noSkill" } of getRobots()) {
|
||||
>name : Symbol(name, Decl(sourceMapValidationDestructuringForOfObjectBindingPatternDefaultValues2.ts, 132, 6))
|
||||
>skill : Symbol(skill, Decl(sourceMapValidationDestructuringForOfObjectBindingPatternDefaultValues2.ts, 132, 23))
|
||||
>getRobots : Symbol(getRobots, Decl(sourceMapValidationDestructuringForOfObjectBindingPatternDefaultValues2.ts, 18, 79))
|
||||
|
||||
console.log(nameA);
|
||||
>console.log : Symbol(log, Decl(sourceMapValidationDestructuringForOfObjectBindingPatternDefaultValues2.ts, 0, 22))
|
||||
>console : Symbol(console, Decl(sourceMapValidationDestructuringForOfObjectBindingPatternDefaultValues2.ts, 0, 11))
|
||||
>log : Symbol(log, Decl(sourceMapValidationDestructuringForOfObjectBindingPatternDefaultValues2.ts, 0, 22))
|
||||
>nameA : Symbol(nameA, Decl(sourceMapValidationDestructuringForOfObjectBindingPatternDefaultValues2.ts, 28, 3))
|
||||
}
|
||||
for ({ name = "noName", skill = "noSkill" } of [{ name: "mower", skill: "mowing" }, { name: "trimmer", skill: "trimming" }]) {
|
||||
>name : Symbol(name, Decl(sourceMapValidationDestructuringForOfObjectBindingPatternDefaultValues2.ts, 135, 6))
|
||||
>skill : Symbol(skill, Decl(sourceMapValidationDestructuringForOfObjectBindingPatternDefaultValues2.ts, 135, 23))
|
||||
>name : Symbol(name, Decl(sourceMapValidationDestructuringForOfObjectBindingPatternDefaultValues2.ts, 135, 50))
|
||||
>skill : Symbol(skill, Decl(sourceMapValidationDestructuringForOfObjectBindingPatternDefaultValues2.ts, 135, 65))
|
||||
>name : Symbol(name, Decl(sourceMapValidationDestructuringForOfObjectBindingPatternDefaultValues2.ts, 135, 86))
|
||||
>skill : Symbol(skill, Decl(sourceMapValidationDestructuringForOfObjectBindingPatternDefaultValues2.ts, 135, 103))
|
||||
|
||||
console.log(nameA);
|
||||
>console.log : Symbol(log, Decl(sourceMapValidationDestructuringForOfObjectBindingPatternDefaultValues2.ts, 0, 22))
|
||||
>console : Symbol(console, Decl(sourceMapValidationDestructuringForOfObjectBindingPatternDefaultValues2.ts, 0, 11))
|
||||
>log : Symbol(log, Decl(sourceMapValidationDestructuringForOfObjectBindingPatternDefaultValues2.ts, 0, 22))
|
||||
>nameA : Symbol(nameA, Decl(sourceMapValidationDestructuringForOfObjectBindingPatternDefaultValues2.ts, 28, 3))
|
||||
}
|
||||
for ({
|
||||
name = "noName",
|
||||
>name : Symbol(name, Decl(sourceMapValidationDestructuringForOfObjectBindingPatternDefaultValues2.ts, 138, 6))
|
||||
|
||||
skills: {
|
||||
>skills : Symbol(skills, Decl(sourceMapValidationDestructuringForOfObjectBindingPatternDefaultValues2.ts, 139, 20))
|
||||
|
||||
primary = "primary",
|
||||
>primary : Symbol(primary, Decl(sourceMapValidationDestructuringForOfObjectBindingPatternDefaultValues2.ts, 140, 13))
|
||||
|
||||
secondary = "secondary"
|
||||
>secondary : Symbol(secondary, Decl(sourceMapValidationDestructuringForOfObjectBindingPatternDefaultValues2.ts, 141, 28))
|
||||
|
||||
} = { primary: "noSkill", secondary: "noSkill" }
|
||||
>primary : Symbol(primary, Decl(sourceMapValidationDestructuringForOfObjectBindingPatternDefaultValues2.ts, 143, 9))
|
||||
>secondary : Symbol(secondary, Decl(sourceMapValidationDestructuringForOfObjectBindingPatternDefaultValues2.ts, 143, 29))
|
||||
|
||||
} of multiRobots) {
|
||||
>multiRobots : Symbol(multiRobots, Decl(sourceMapValidationDestructuringForOfObjectBindingPatternDefaultValues2.ts, 17, 3))
|
||||
|
||||
console.log(nameA);
|
||||
>console.log : Symbol(log, Decl(sourceMapValidationDestructuringForOfObjectBindingPatternDefaultValues2.ts, 0, 22))
|
||||
>console : Symbol(console, Decl(sourceMapValidationDestructuringForOfObjectBindingPatternDefaultValues2.ts, 0, 11))
|
||||
>log : Symbol(log, Decl(sourceMapValidationDestructuringForOfObjectBindingPatternDefaultValues2.ts, 0, 22))
|
||||
>nameA : Symbol(nameA, Decl(sourceMapValidationDestructuringForOfObjectBindingPatternDefaultValues2.ts, 28, 3))
|
||||
}
|
||||
for ({
|
||||
name = "noName",
|
||||
>name : Symbol(name, Decl(sourceMapValidationDestructuringForOfObjectBindingPatternDefaultValues2.ts, 147, 6))
|
||||
|
||||
skills: {
|
||||
>skills : Symbol(skills, Decl(sourceMapValidationDestructuringForOfObjectBindingPatternDefaultValues2.ts, 148, 20))
|
||||
|
||||
primary = "primary",
|
||||
>primary : Symbol(primary, Decl(sourceMapValidationDestructuringForOfObjectBindingPatternDefaultValues2.ts, 149, 13))
|
||||
|
||||
secondary = "secondary"
|
||||
>secondary : Symbol(secondary, Decl(sourceMapValidationDestructuringForOfObjectBindingPatternDefaultValues2.ts, 150, 28))
|
||||
|
||||
} = { primary: "noSkill", secondary: "noSkill" }
|
||||
>primary : Symbol(primary, Decl(sourceMapValidationDestructuringForOfObjectBindingPatternDefaultValues2.ts, 152, 9))
|
||||
>secondary : Symbol(secondary, Decl(sourceMapValidationDestructuringForOfObjectBindingPatternDefaultValues2.ts, 152, 29))
|
||||
|
||||
} of getMultiRobots()) {
|
||||
>getMultiRobots : Symbol(getMultiRobots, Decl(sourceMapValidationDestructuringForOfObjectBindingPatternDefaultValues2.ts, 22, 1))
|
||||
|
||||
console.log(nameA);
|
||||
>console.log : Symbol(log, Decl(sourceMapValidationDestructuringForOfObjectBindingPatternDefaultValues2.ts, 0, 22))
|
||||
>console : Symbol(console, Decl(sourceMapValidationDestructuringForOfObjectBindingPatternDefaultValues2.ts, 0, 11))
|
||||
>log : Symbol(log, Decl(sourceMapValidationDestructuringForOfObjectBindingPatternDefaultValues2.ts, 0, 22))
|
||||
>nameA : Symbol(nameA, Decl(sourceMapValidationDestructuringForOfObjectBindingPatternDefaultValues2.ts, 28, 3))
|
||||
}
|
||||
for ({
|
||||
name = "noName",
|
||||
>name : Symbol(name, Decl(sourceMapValidationDestructuringForOfObjectBindingPatternDefaultValues2.ts, 156, 6))
|
||||
|
||||
skills: {
|
||||
>skills : Symbol(skills, Decl(sourceMapValidationDestructuringForOfObjectBindingPatternDefaultValues2.ts, 157, 20))
|
||||
|
||||
primary = "primary",
|
||||
>primary : Symbol(primary, Decl(sourceMapValidationDestructuringForOfObjectBindingPatternDefaultValues2.ts, 158, 13))
|
||||
|
||||
secondary = "secondary"
|
||||
>secondary : Symbol(secondary, Decl(sourceMapValidationDestructuringForOfObjectBindingPatternDefaultValues2.ts, 159, 28))
|
||||
|
||||
} = { primary: "noSkill", secondary: "noSkill" }
|
||||
>primary : Symbol(primary, Decl(sourceMapValidationDestructuringForOfObjectBindingPatternDefaultValues2.ts, 161, 9))
|
||||
>secondary : Symbol(secondary, Decl(sourceMapValidationDestructuringForOfObjectBindingPatternDefaultValues2.ts, 161, 29))
|
||||
|
||||
} of [{ name: "mower", skills: { primary: "mowing", secondary: "none" } },
|
||||
>name : Symbol(name, Decl(sourceMapValidationDestructuringForOfObjectBindingPatternDefaultValues2.ts, 162, 7))
|
||||
>skills : Symbol(skills, Decl(sourceMapValidationDestructuringForOfObjectBindingPatternDefaultValues2.ts, 162, 22))
|
||||
>primary : Symbol(primary, Decl(sourceMapValidationDestructuringForOfObjectBindingPatternDefaultValues2.ts, 162, 32))
|
||||
>secondary : Symbol(secondary, Decl(sourceMapValidationDestructuringForOfObjectBindingPatternDefaultValues2.ts, 162, 51))
|
||||
|
||||
{ name: "trimmer", skills: { primary: "trimming", secondary: "edging" } }]) {
|
||||
>name : Symbol(name, Decl(sourceMapValidationDestructuringForOfObjectBindingPatternDefaultValues2.ts, 163, 5))
|
||||
>skills : Symbol(skills, Decl(sourceMapValidationDestructuringForOfObjectBindingPatternDefaultValues2.ts, 163, 22))
|
||||
>primary : Symbol(primary, Decl(sourceMapValidationDestructuringForOfObjectBindingPatternDefaultValues2.ts, 163, 32))
|
||||
>secondary : Symbol(secondary, Decl(sourceMapValidationDestructuringForOfObjectBindingPatternDefaultValues2.ts, 163, 53))
|
||||
|
||||
console.log(nameA);
|
||||
>console.log : Symbol(log, Decl(sourceMapValidationDestructuringForOfObjectBindingPatternDefaultValues2.ts, 0, 22))
|
||||
>console : Symbol(console, Decl(sourceMapValidationDestructuringForOfObjectBindingPatternDefaultValues2.ts, 0, 11))
|
||||
>log : Symbol(log, Decl(sourceMapValidationDestructuringForOfObjectBindingPatternDefaultValues2.ts, 0, 22))
|
||||
>nameA : Symbol(nameA, Decl(sourceMapValidationDestructuringForOfObjectBindingPatternDefaultValues2.ts, 28, 3))
|
||||
}
|
||||
@@ -0,0 +1,829 @@
|
||||
=== tests/cases/compiler/sourceMapValidationDestructuringForOfObjectBindingPatternDefaultValues2.ts ===
|
||||
declare var console: {
|
||||
>console : { log(msg: any): void; }
|
||||
|
||||
log(msg: any): void;
|
||||
>log : (msg: any) => void
|
||||
>msg : any
|
||||
}
|
||||
interface Robot {
|
||||
>Robot : Robot
|
||||
|
||||
name: string;
|
||||
>name : string
|
||||
|
||||
skill: string;
|
||||
>skill : string
|
||||
}
|
||||
|
||||
interface MultiRobot {
|
||||
>MultiRobot : MultiRobot
|
||||
|
||||
name: string;
|
||||
>name : string
|
||||
|
||||
skills: {
|
||||
>skills : { primary: string; secondary: string; }
|
||||
|
||||
primary: string;
|
||||
>primary : string
|
||||
|
||||
secondary: string;
|
||||
>secondary : string
|
||||
|
||||
};
|
||||
}
|
||||
|
||||
let robots: Robot[] = [{ name: "mower", skill: "mowing" }, { name: "trimmer", skill: "trimming" }];
|
||||
>robots : Robot[]
|
||||
>Robot : Robot
|
||||
>[{ name: "mower", skill: "mowing" }, { name: "trimmer", skill: "trimming" }] : { name: string; skill: string; }[]
|
||||
>{ name: "mower", skill: "mowing" } : { name: string; skill: string; }
|
||||
>name : string
|
||||
>"mower" : string
|
||||
>skill : string
|
||||
>"mowing" : string
|
||||
>{ name: "trimmer", skill: "trimming" } : { name: string; skill: string; }
|
||||
>name : string
|
||||
>"trimmer" : string
|
||||
>skill : string
|
||||
>"trimming" : string
|
||||
|
||||
let multiRobots: MultiRobot[] = [{ name: "mower", skills: { primary: "mowing", secondary: "none" } },
|
||||
>multiRobots : MultiRobot[]
|
||||
>MultiRobot : MultiRobot
|
||||
>[{ name: "mower", skills: { primary: "mowing", secondary: "none" } }, { name: "trimmer", skills: { primary: "trimming", secondary: "edging" } }] : { name: string; skills: { primary: string; secondary: string; }; }[]
|
||||
>{ name: "mower", skills: { primary: "mowing", secondary: "none" } } : { name: string; skills: { primary: string; secondary: string; }; }
|
||||
>name : string
|
||||
>"mower" : string
|
||||
>skills : { primary: string; secondary: string; }
|
||||
>{ primary: "mowing", secondary: "none" } : { primary: string; secondary: string; }
|
||||
>primary : string
|
||||
>"mowing" : string
|
||||
>secondary : string
|
||||
>"none" : string
|
||||
|
||||
{ name: "trimmer", skills: { primary: "trimming", secondary: "edging" } }];
|
||||
>{ name: "trimmer", skills: { primary: "trimming", secondary: "edging" } } : { name: string; skills: { primary: string; secondary: string; }; }
|
||||
>name : string
|
||||
>"trimmer" : string
|
||||
>skills : { primary: string; secondary: string; }
|
||||
>{ primary: "trimming", secondary: "edging" } : { primary: string; secondary: string; }
|
||||
>primary : string
|
||||
>"trimming" : string
|
||||
>secondary : string
|
||||
>"edging" : string
|
||||
|
||||
function getRobots() {
|
||||
>getRobots : () => Robot[]
|
||||
|
||||
return robots;
|
||||
>robots : Robot[]
|
||||
}
|
||||
|
||||
function getMultiRobots() {
|
||||
>getMultiRobots : () => MultiRobot[]
|
||||
|
||||
return multiRobots;
|
||||
>multiRobots : MultiRobot[]
|
||||
}
|
||||
|
||||
let nameA: string, primaryA: string, secondaryA: string, i: number, skillA: string;
|
||||
>nameA : string
|
||||
>primaryA : string
|
||||
>secondaryA : string
|
||||
>i : number
|
||||
>skillA : string
|
||||
|
||||
let name: string, primary: string, secondary: string, skill: string;
|
||||
>name : string
|
||||
>primary : string
|
||||
>secondary : string
|
||||
>skill : string
|
||||
|
||||
for ({name: nameA = "noName" } of robots) {
|
||||
>{name: nameA = "noName" } : { name: string; }
|
||||
>name : Robot
|
||||
>nameA = "noName" : string
|
||||
>nameA : string
|
||||
>"noName" : string
|
||||
>robots : Robot[]
|
||||
|
||||
console.log(nameA);
|
||||
>console.log(nameA) : void
|
||||
>console.log : (msg: any) => void
|
||||
>console : { log(msg: any): void; }
|
||||
>log : (msg: any) => void
|
||||
>nameA : string
|
||||
}
|
||||
for ({name: nameA = "noName" } of getRobots()) {
|
||||
>{name: nameA = "noName" } : { name: string; }
|
||||
>name : Robot
|
||||
>nameA = "noName" : string
|
||||
>nameA : string
|
||||
>"noName" : string
|
||||
>getRobots() : Robot[]
|
||||
>getRobots : () => Robot[]
|
||||
|
||||
console.log(nameA);
|
||||
>console.log(nameA) : void
|
||||
>console.log : (msg: any) => void
|
||||
>console : { log(msg: any): void; }
|
||||
>log : (msg: any) => void
|
||||
>nameA : string
|
||||
}
|
||||
for ({name: nameA = "noName" } of [{ name: "mower", skill: "mowing" }, { name: "trimmer", skill: "trimming" }]) {
|
||||
>{name: nameA = "noName" } : { name: string; }
|
||||
>name : { name: string; skill: string; }
|
||||
>nameA = "noName" : string
|
||||
>nameA : string
|
||||
>"noName" : string
|
||||
>[{ name: "mower", skill: "mowing" }, { name: "trimmer", skill: "trimming" }] : { name: string; skill: string; }[]
|
||||
>{ name: "mower", skill: "mowing" } : { name: string; skill: string; }
|
||||
>name : string
|
||||
>"mower" : string
|
||||
>skill : string
|
||||
>"mowing" : string
|
||||
>{ name: "trimmer", skill: "trimming" } : { name: string; skill: string; }
|
||||
>name : string
|
||||
>"trimmer" : string
|
||||
>skill : string
|
||||
>"trimming" : 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 ({ skills: { primary: primaryA = "primary", secondary: secondaryA = "secondary" } =
|
||||
>{ skills: { primary: primaryA = "primary", secondary: secondaryA = "secondary" } = { primary: "nosKill", secondary: "noSkill" } } : { skills: { primary?: string; secondary?: string; }; }
|
||||
>skills : MultiRobot
|
||||
>{ primary: primaryA = "primary", secondary: secondaryA = "secondary" } = { primary: "nosKill", secondary: "noSkill" } : { primary?: string; secondary?: string; }
|
||||
>{ primary: primaryA = "primary", secondary: secondaryA = "secondary" } : { primary?: string; secondary?: string; }
|
||||
>primary : string
|
||||
>primaryA = "primary" : string
|
||||
>primaryA : string
|
||||
>"primary" : string
|
||||
>secondary : string
|
||||
>secondaryA = "secondary" : string
|
||||
>secondaryA : string
|
||||
>"secondary" : string
|
||||
|
||||
{ primary: "nosKill", secondary: "noSkill" } } of multiRobots) {
|
||||
>{ primary: "nosKill", secondary: "noSkill" } : { primary?: string; secondary?: string; }
|
||||
>primary : string
|
||||
>"nosKill" : string
|
||||
>secondary : string
|
||||
>"noSkill" : string
|
||||
>multiRobots : MultiRobot[]
|
||||
|
||||
console.log(primaryA);
|
||||
>console.log(primaryA) : void
|
||||
>console.log : (msg: any) => void
|
||||
>console : { log(msg: any): void; }
|
||||
>log : (msg: any) => void
|
||||
>primaryA : string
|
||||
}
|
||||
for ({ skills: { primary: primaryA = "primary", secondary: secondaryA = "secondary" } =
|
||||
>{ skills: { primary: primaryA = "primary", secondary: secondaryA = "secondary" } = { primary: "nosKill", secondary: "noSkill" } } : { skills: { primary?: string; secondary?: string; }; }
|
||||
>skills : MultiRobot
|
||||
>{ primary: primaryA = "primary", secondary: secondaryA = "secondary" } = { primary: "nosKill", secondary: "noSkill" } : { primary?: string; secondary?: string; }
|
||||
>{ primary: primaryA = "primary", secondary: secondaryA = "secondary" } : { primary?: string; secondary?: string; }
|
||||
>primary : string
|
||||
>primaryA = "primary" : string
|
||||
>primaryA : string
|
||||
>"primary" : string
|
||||
>secondary : string
|
||||
>secondaryA = "secondary" : string
|
||||
>secondaryA : string
|
||||
>"secondary" : string
|
||||
|
||||
{ primary: "nosKill", secondary: "noSkill" } } of getMultiRobots()) {
|
||||
>{ primary: "nosKill", secondary: "noSkill" } : { primary?: string; secondary?: string; }
|
||||
>primary : string
|
||||
>"nosKill" : string
|
||||
>secondary : string
|
||||
>"noSkill" : string
|
||||
>getMultiRobots() : MultiRobot[]
|
||||
>getMultiRobots : () => MultiRobot[]
|
||||
|
||||
console.log(primaryA);
|
||||
>console.log(primaryA) : void
|
||||
>console.log : (msg: any) => void
|
||||
>console : { log(msg: any): void; }
|
||||
>log : (msg: any) => void
|
||||
>primaryA : string
|
||||
}
|
||||
for ({ skills: { primary: primaryA = "primary", secondary: secondaryA = "secondary" } =
|
||||
>{ skills: { primary: primaryA = "primary", secondary: secondaryA = "secondary" } = { primary: "nosKill", secondary: "noSkill" } } : { skills: { primary?: string; secondary?: string; }; }
|
||||
>skills : MultiRobot
|
||||
>{ primary: primaryA = "primary", secondary: secondaryA = "secondary" } = { primary: "nosKill", secondary: "noSkill" } : { primary?: string; secondary?: string; }
|
||||
>{ primary: primaryA = "primary", secondary: secondaryA = "secondary" } : { primary?: string; secondary?: string; }
|
||||
>primary : string
|
||||
>primaryA = "primary" : string
|
||||
>primaryA : string
|
||||
>"primary" : string
|
||||
>secondary : string
|
||||
>secondaryA = "secondary" : string
|
||||
>secondaryA : string
|
||||
>"secondary" : string
|
||||
|
||||
{ primary: "nosKill", secondary: "noSkill" } } of
|
||||
>{ primary: "nosKill", secondary: "noSkill" } : { primary?: string; secondary?: string; }
|
||||
>primary : string
|
||||
>"nosKill" : string
|
||||
>secondary : string
|
||||
>"noSkill" : string
|
||||
|
||||
<MultiRobot[]>[{ name: "mower", skills: { primary: "mowing", secondary: "none" } },
|
||||
><MultiRobot[]>[{ name: "mower", skills: { primary: "mowing", secondary: "none" } }, { name: "trimmer", skills: { primary: "trimming", secondary: "edging" } }] : MultiRobot[]
|
||||
>MultiRobot : MultiRobot
|
||||
>[{ name: "mower", skills: { primary: "mowing", secondary: "none" } }, { name: "trimmer", skills: { primary: "trimming", secondary: "edging" } }] : { name: string; skills: { primary: string; secondary: string; }; }[]
|
||||
>{ name: "mower", skills: { primary: "mowing", secondary: "none" } } : { name: string; skills: { primary: string; secondary: string; }; }
|
||||
>name : string
|
||||
>"mower" : string
|
||||
>skills : { primary: string; secondary: string; }
|
||||
>{ primary: "mowing", secondary: "none" } : { primary: string; secondary: string; }
|
||||
>primary : string
|
||||
>"mowing" : string
|
||||
>secondary : string
|
||||
>"none" : string
|
||||
|
||||
{ name: "trimmer", skills: { primary: "trimming", secondary: "edging" } }]) {
|
||||
>{ name: "trimmer", skills: { primary: "trimming", secondary: "edging" } } : { name: string; skills: { primary: string; secondary: string; }; }
|
||||
>name : string
|
||||
>"trimmer" : string
|
||||
>skills : { primary: string; secondary: string; }
|
||||
>{ primary: "trimming", secondary: "edging" } : { primary: string; secondary: string; }
|
||||
>primary : string
|
||||
>"trimming" : string
|
||||
>secondary : string
|
||||
>"edging" : string
|
||||
|
||||
console.log(primaryA);
|
||||
>console.log(primaryA) : void
|
||||
>console.log : (msg: any) => void
|
||||
>console : { log(msg: any): void; }
|
||||
>log : (msg: any) => void
|
||||
>primaryA : string
|
||||
}
|
||||
|
||||
for ({ name = "noName" } of robots) {
|
||||
>{ name = "noName" } : { name: string; }
|
||||
>name : Robot
|
||||
>robots : Robot[]
|
||||
|
||||
console.log(nameA);
|
||||
>console.log(nameA) : void
|
||||
>console.log : (msg: any) => void
|
||||
>console : { log(msg: any): void; }
|
||||
>log : (msg: any) => void
|
||||
>nameA : string
|
||||
}
|
||||
for ({ name = "noName" } of getRobots()) {
|
||||
>{ name = "noName" } : { name: string; }
|
||||
>name : Robot
|
||||
>getRobots() : Robot[]
|
||||
>getRobots : () => Robot[]
|
||||
|
||||
console.log(nameA);
|
||||
>console.log(nameA) : void
|
||||
>console.log : (msg: any) => void
|
||||
>console : { log(msg: any): void; }
|
||||
>log : (msg: any) => void
|
||||
>nameA : string
|
||||
}
|
||||
for ({ name = "noName" } of [{ name: "mower", skill: "mowing" }, { name: "trimmer", skill: "trimming" }]) {
|
||||
>{ name = "noName" } : { name: string; }
|
||||
>name : { name: string; skill: string; }
|
||||
>[{ name: "mower", skill: "mowing" }, { name: "trimmer", skill: "trimming" }] : { name: string; skill: string; }[]
|
||||
>{ name: "mower", skill: "mowing" } : { name: string; skill: string; }
|
||||
>name : string
|
||||
>"mower" : string
|
||||
>skill : string
|
||||
>"mowing" : string
|
||||
>{ name: "trimmer", skill: "trimming" } : { name: string; skill: string; }
|
||||
>name : string
|
||||
>"trimmer" : string
|
||||
>skill : string
|
||||
>"trimming" : 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 ({
|
||||
>{ skills: { primary = "primary", secondary = "secondary" } = { primary: "noSkill", secondary: "noSkill" }} : { skills: { primary?: string; secondary?: string; }; }
|
||||
|
||||
skills: {
|
||||
>skills : MultiRobot
|
||||
>{ primary = "primary", secondary = "secondary" } = { primary: "noSkill", secondary: "noSkill" } : { primary?: string; secondary?: string; }
|
||||
>{ primary = "primary", secondary = "secondary" } : { primary?: string; secondary?: string; }
|
||||
|
||||
primary = "primary",
|
||||
>primary : string
|
||||
|
||||
secondary = "secondary"
|
||||
>secondary : string
|
||||
|
||||
} = { primary: "noSkill", secondary: "noSkill" }
|
||||
>{ primary: "noSkill", secondary: "noSkill" } : { primary?: string; secondary?: string; }
|
||||
>primary : string
|
||||
>"noSkill" : string
|
||||
>secondary : string
|
||||
>"noSkill" : string
|
||||
|
||||
} of multiRobots) {
|
||||
>multiRobots : MultiRobot[]
|
||||
|
||||
console.log(primaryA);
|
||||
>console.log(primaryA) : void
|
||||
>console.log : (msg: any) => void
|
||||
>console : { log(msg: any): void; }
|
||||
>log : (msg: any) => void
|
||||
>primaryA : string
|
||||
}
|
||||
for ({
|
||||
>{ skills: { primary = "primary", secondary = "secondary" } = { primary: "noSkill", secondary: "noSkill" }} : { skills: { primary?: string; secondary?: string; }; }
|
||||
|
||||
skills: {
|
||||
>skills : MultiRobot
|
||||
>{ primary = "primary", secondary = "secondary" } = { primary: "noSkill", secondary: "noSkill" } : { primary?: string; secondary?: string; }
|
||||
>{ primary = "primary", secondary = "secondary" } : { primary?: string; secondary?: string; }
|
||||
|
||||
primary = "primary",
|
||||
>primary : string
|
||||
|
||||
secondary = "secondary"
|
||||
>secondary : string
|
||||
|
||||
} = { primary: "noSkill", secondary: "noSkill" }
|
||||
>{ primary: "noSkill", secondary: "noSkill" } : { primary?: string; secondary?: string; }
|
||||
>primary : string
|
||||
>"noSkill" : string
|
||||
>secondary : string
|
||||
>"noSkill" : string
|
||||
|
||||
} of getMultiRobots()) {
|
||||
>getMultiRobots() : MultiRobot[]
|
||||
>getMultiRobots : () => MultiRobot[]
|
||||
|
||||
console.log(primaryA);
|
||||
>console.log(primaryA) : void
|
||||
>console.log : (msg: any) => void
|
||||
>console : { log(msg: any): void; }
|
||||
>log : (msg: any) => void
|
||||
>primaryA : string
|
||||
}
|
||||
for ({
|
||||
>{ skills: { primary = "primary", secondary = "secondary" } = { primary: "noSkill", secondary: "noSkill" }} : { skills: { primary?: string; secondary?: string; }; }
|
||||
|
||||
skills: {
|
||||
>skills : { name: string; skills: { primary: string; secondary: string; }; }
|
||||
>{ primary = "primary", secondary = "secondary" } = { primary: "noSkill", secondary: "noSkill" } : { primary?: string; secondary?: string; }
|
||||
>{ primary = "primary", secondary = "secondary" } : { primary?: string; secondary?: string; }
|
||||
|
||||
primary = "primary",
|
||||
>primary : string
|
||||
|
||||
secondary = "secondary"
|
||||
>secondary : string
|
||||
|
||||
} = { primary: "noSkill", secondary: "noSkill" }
|
||||
>{ primary: "noSkill", secondary: "noSkill" } : { primary?: string; secondary?: string; }
|
||||
>primary : string
|
||||
>"noSkill" : string
|
||||
>secondary : string
|
||||
>"noSkill" : string
|
||||
|
||||
} of [{ name: "mower", skills: { primary: "mowing", secondary: "none" } },
|
||||
>[{ name: "mower", skills: { primary: "mowing", secondary: "none" } }, { name: "trimmer", skills: { primary: "trimming", secondary: "edging" } }] : { name: string; skills: { primary: string; secondary: string; }; }[]
|
||||
>{ name: "mower", skills: { primary: "mowing", secondary: "none" } } : { name: string; skills: { primary: string; secondary: string; }; }
|
||||
>name : string
|
||||
>"mower" : string
|
||||
>skills : { primary: string; secondary: string; }
|
||||
>{ primary: "mowing", secondary: "none" } : { primary: string; secondary: string; }
|
||||
>primary : string
|
||||
>"mowing" : string
|
||||
>secondary : string
|
||||
>"none" : string
|
||||
|
||||
{ name: "trimmer", skills: { primary: "trimming", secondary: "edging" } }]) {
|
||||
>{ name: "trimmer", skills: { primary: "trimming", secondary: "edging" } } : { name: string; skills: { primary: string; secondary: string; }; }
|
||||
>name : string
|
||||
>"trimmer" : string
|
||||
>skills : { primary: string; secondary: string; }
|
||||
>{ primary: "trimming", secondary: "edging" } : { primary: string; secondary: string; }
|
||||
>primary : string
|
||||
>"trimming" : string
|
||||
>secondary : string
|
||||
>"edging" : string
|
||||
|
||||
console.log(primaryA);
|
||||
>console.log(primaryA) : void
|
||||
>console.log : (msg: any) => void
|
||||
>console : { log(msg: any): void; }
|
||||
>log : (msg: any) => void
|
||||
>primaryA : string
|
||||
}
|
||||
|
||||
|
||||
for ({name: nameA = "noName", skill: skillA = "noSkill" } of robots) {
|
||||
>{name: nameA = "noName", skill: skillA = "noSkill" } : { name: string; skill: string; }
|
||||
>name : Robot
|
||||
>nameA = "noName" : string
|
||||
>nameA : string
|
||||
>"noName" : string
|
||||
>skill : Robot
|
||||
>skillA = "noSkill" : string
|
||||
>skillA : string
|
||||
>"noSkill" : string
|
||||
>robots : Robot[]
|
||||
|
||||
console.log(nameA);
|
||||
>console.log(nameA) : void
|
||||
>console.log : (msg: any) => void
|
||||
>console : { log(msg: any): void; }
|
||||
>log : (msg: any) => void
|
||||
>nameA : string
|
||||
}
|
||||
for ({name: nameA = "noName", skill: skillA = "noSkill" } of getRobots()) {
|
||||
>{name: nameA = "noName", skill: skillA = "noSkill" } : { name: string; skill: string; }
|
||||
>name : Robot
|
||||
>nameA = "noName" : string
|
||||
>nameA : string
|
||||
>"noName" : string
|
||||
>skill : Robot
|
||||
>skillA = "noSkill" : string
|
||||
>skillA : string
|
||||
>"noSkill" : string
|
||||
>getRobots() : Robot[]
|
||||
>getRobots : () => Robot[]
|
||||
|
||||
console.log(nameA);
|
||||
>console.log(nameA) : void
|
||||
>console.log : (msg: any) => void
|
||||
>console : { log(msg: any): void; }
|
||||
>log : (msg: any) => void
|
||||
>nameA : string
|
||||
}
|
||||
for ({name: nameA = "noName", skill: skillA = "noSkill" } of [{ name: "mower", skill: "mowing" }, { name: "trimmer", skill: "trimming" }]) {
|
||||
>{name: nameA = "noName", skill: skillA = "noSkill" } : { name: string; skill: string; }
|
||||
>name : { name: string; skill: string; }
|
||||
>nameA = "noName" : string
|
||||
>nameA : string
|
||||
>"noName" : string
|
||||
>skill : { name: string; skill: string; }
|
||||
>skillA = "noSkill" : string
|
||||
>skillA : string
|
||||
>"noSkill" : string
|
||||
>[{ name: "mower", skill: "mowing" }, { name: "trimmer", skill: "trimming" }] : { name: string; skill: string; }[]
|
||||
>{ name: "mower", skill: "mowing" } : { name: string; skill: string; }
|
||||
>name : string
|
||||
>"mower" : string
|
||||
>skill : string
|
||||
>"mowing" : string
|
||||
>{ name: "trimmer", skill: "trimming" } : { name: string; skill: string; }
|
||||
>name : string
|
||||
>"trimmer" : string
|
||||
>skill : string
|
||||
>"trimming" : 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 ({
|
||||
>{ name: nameA = "noName", skills: { primary: primaryA = "primary", secondary: secondaryA = "secondary" } = { primary: "noSkill", secondary: "noSkill" }} : { name: string; skills: { primary?: string; secondary?: string; }; }
|
||||
|
||||
name: nameA = "noName",
|
||||
>name : MultiRobot
|
||||
>nameA = "noName" : string
|
||||
>nameA : string
|
||||
>"noName" : string
|
||||
|
||||
skills: {
|
||||
>skills : MultiRobot
|
||||
>{ primary: primaryA = "primary", secondary: secondaryA = "secondary" } = { primary: "noSkill", secondary: "noSkill" } : { primary?: string; secondary?: string; }
|
||||
>{ primary: primaryA = "primary", secondary: secondaryA = "secondary" } : { primary?: string; secondary?: string; }
|
||||
|
||||
primary: primaryA = "primary",
|
||||
>primary : string
|
||||
>primaryA = "primary" : string
|
||||
>primaryA : string
|
||||
>"primary" : string
|
||||
|
||||
secondary: secondaryA = "secondary"
|
||||
>secondary : string
|
||||
>secondaryA = "secondary" : string
|
||||
>secondaryA : string
|
||||
>"secondary" : string
|
||||
|
||||
} = { primary: "noSkill", secondary: "noSkill" }
|
||||
>{ primary: "noSkill", secondary: "noSkill" } : { primary?: string; secondary?: string; }
|
||||
>primary : string
|
||||
>"noSkill" : string
|
||||
>secondary : string
|
||||
>"noSkill" : string
|
||||
|
||||
} of multiRobots) {
|
||||
>multiRobots : MultiRobot[]
|
||||
|
||||
console.log(nameA);
|
||||
>console.log(nameA) : void
|
||||
>console.log : (msg: any) => void
|
||||
>console : { log(msg: any): void; }
|
||||
>log : (msg: any) => void
|
||||
>nameA : string
|
||||
}
|
||||
for ({
|
||||
>{ name: nameA = "noName", skills: { primary: primaryA = "primary", secondary: secondaryA = "secondary" } = { primary: "noSkill", secondary: "noSkill" }} : { name: string; skills: { primary?: string; secondary?: string; }; }
|
||||
|
||||
name: nameA = "noName",
|
||||
>name : MultiRobot
|
||||
>nameA = "noName" : string
|
||||
>nameA : string
|
||||
>"noName" : string
|
||||
|
||||
skills: {
|
||||
>skills : MultiRobot
|
||||
>{ primary: primaryA = "primary", secondary: secondaryA = "secondary" } = { primary: "noSkill", secondary: "noSkill" } : { primary?: string; secondary?: string; }
|
||||
>{ primary: primaryA = "primary", secondary: secondaryA = "secondary" } : { primary?: string; secondary?: string; }
|
||||
|
||||
primary: primaryA = "primary",
|
||||
>primary : string
|
||||
>primaryA = "primary" : string
|
||||
>primaryA : string
|
||||
>"primary" : string
|
||||
|
||||
secondary: secondaryA = "secondary"
|
||||
>secondary : string
|
||||
>secondaryA = "secondary" : string
|
||||
>secondaryA : string
|
||||
>"secondary" : string
|
||||
|
||||
} = { primary: "noSkill", secondary: "noSkill" }
|
||||
>{ primary: "noSkill", secondary: "noSkill" } : { primary?: string; secondary?: string; }
|
||||
>primary : string
|
||||
>"noSkill" : string
|
||||
>secondary : string
|
||||
>"noSkill" : string
|
||||
|
||||
} of getMultiRobots()) {
|
||||
>getMultiRobots() : MultiRobot[]
|
||||
>getMultiRobots : () => MultiRobot[]
|
||||
|
||||
console.log(nameA);
|
||||
>console.log(nameA) : void
|
||||
>console.log : (msg: any) => void
|
||||
>console : { log(msg: any): void; }
|
||||
>log : (msg: any) => void
|
||||
>nameA : string
|
||||
}
|
||||
for ({
|
||||
>{ name: nameA = "noName", skills: { primary: primaryA = "primary", secondary: secondaryA = "secondary" } = { primary: "noSkill", secondary: "noSkill" }} : { name: string; skills: { primary?: string; secondary?: string; }; }
|
||||
|
||||
name: nameA = "noName",
|
||||
>name : MultiRobot
|
||||
>nameA = "noName" : string
|
||||
>nameA : string
|
||||
>"noName" : string
|
||||
|
||||
skills: {
|
||||
>skills : MultiRobot
|
||||
>{ primary: primaryA = "primary", secondary: secondaryA = "secondary" } = { primary: "noSkill", secondary: "noSkill" } : { primary?: string; secondary?: string; }
|
||||
>{ primary: primaryA = "primary", secondary: secondaryA = "secondary" } : { primary?: string; secondary?: string; }
|
||||
|
||||
primary: primaryA = "primary",
|
||||
>primary : string
|
||||
>primaryA = "primary" : string
|
||||
>primaryA : string
|
||||
>"primary" : string
|
||||
|
||||
secondary: secondaryA = "secondary"
|
||||
>secondary : string
|
||||
>secondaryA = "secondary" : string
|
||||
>secondaryA : string
|
||||
>"secondary" : string
|
||||
|
||||
} = { primary: "noSkill", secondary: "noSkill" }
|
||||
>{ primary: "noSkill", secondary: "noSkill" } : { primary?: string; secondary?: string; }
|
||||
>primary : string
|
||||
>"noSkill" : string
|
||||
>secondary : string
|
||||
>"noSkill" : string
|
||||
|
||||
} of <MultiRobot[]>[{ name: "mower", skills: { primary: "mowing", secondary: "none" } },
|
||||
><MultiRobot[]>[{ name: "mower", skills: { primary: "mowing", secondary: "none" } }, { name: "trimmer", skills: { primary: "trimming", secondary: "edging" } }] : MultiRobot[]
|
||||
>MultiRobot : MultiRobot
|
||||
>[{ name: "mower", skills: { primary: "mowing", secondary: "none" } }, { name: "trimmer", skills: { primary: "trimming", secondary: "edging" } }] : { name: string; skills: { primary: string; secondary: string; }; }[]
|
||||
>{ name: "mower", skills: { primary: "mowing", secondary: "none" } } : { name: string; skills: { primary: string; secondary: string; }; }
|
||||
>name : string
|
||||
>"mower" : string
|
||||
>skills : { primary: string; secondary: string; }
|
||||
>{ primary: "mowing", secondary: "none" } : { primary: string; secondary: string; }
|
||||
>primary : string
|
||||
>"mowing" : string
|
||||
>secondary : string
|
||||
>"none" : string
|
||||
|
||||
{ name: "trimmer", skills: { primary: "trimming", secondary: "edging" } }]) {
|
||||
>{ name: "trimmer", skills: { primary: "trimming", secondary: "edging" } } : { name: string; skills: { primary: string; secondary: string; }; }
|
||||
>name : string
|
||||
>"trimmer" : string
|
||||
>skills : { primary: string; secondary: string; }
|
||||
>{ primary: "trimming", secondary: "edging" } : { primary: string; secondary: string; }
|
||||
>primary : string
|
||||
>"trimming" : string
|
||||
>secondary : string
|
||||
>"edging" : 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 ({ name = "noName", skill = "noSkill" } of robots) {
|
||||
>{ name = "noName", skill = "noSkill" } : { name: string; skill: string; }
|
||||
>name : Robot
|
||||
>skill : Robot
|
||||
>robots : Robot[]
|
||||
|
||||
console.log(nameA);
|
||||
>console.log(nameA) : void
|
||||
>console.log : (msg: any) => void
|
||||
>console : { log(msg: any): void; }
|
||||
>log : (msg: any) => void
|
||||
>nameA : string
|
||||
}
|
||||
for ({ name = "noName", skill = "noSkill" } of getRobots()) {
|
||||
>{ name = "noName", skill = "noSkill" } : { name: string; skill: string; }
|
||||
>name : Robot
|
||||
>skill : Robot
|
||||
>getRobots() : Robot[]
|
||||
>getRobots : () => Robot[]
|
||||
|
||||
console.log(nameA);
|
||||
>console.log(nameA) : void
|
||||
>console.log : (msg: any) => void
|
||||
>console : { log(msg: any): void; }
|
||||
>log : (msg: any) => void
|
||||
>nameA : string
|
||||
}
|
||||
for ({ name = "noName", skill = "noSkill" } of [{ name: "mower", skill: "mowing" }, { name: "trimmer", skill: "trimming" }]) {
|
||||
>{ name = "noName", skill = "noSkill" } : { name: string; skill: string; }
|
||||
>name : { name: string; skill: string; }
|
||||
>skill : { name: string; skill: string; }
|
||||
>[{ name: "mower", skill: "mowing" }, { name: "trimmer", skill: "trimming" }] : { name: string; skill: string; }[]
|
||||
>{ name: "mower", skill: "mowing" } : { name: string; skill: string; }
|
||||
>name : string
|
||||
>"mower" : string
|
||||
>skill : string
|
||||
>"mowing" : string
|
||||
>{ name: "trimmer", skill: "trimming" } : { name: string; skill: string; }
|
||||
>name : string
|
||||
>"trimmer" : string
|
||||
>skill : string
|
||||
>"trimming" : 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 ({
|
||||
>{ name = "noName", skills: { primary = "primary", secondary = "secondary" } = { primary: "noSkill", secondary: "noSkill" }} : { name: string; skills: { primary?: string; secondary?: string; }; }
|
||||
|
||||
name = "noName",
|
||||
>name : MultiRobot
|
||||
|
||||
skills: {
|
||||
>skills : MultiRobot
|
||||
>{ primary = "primary", secondary = "secondary" } = { primary: "noSkill", secondary: "noSkill" } : { primary?: string; secondary?: string; }
|
||||
>{ primary = "primary", secondary = "secondary" } : { primary?: string; secondary?: string; }
|
||||
|
||||
primary = "primary",
|
||||
>primary : string
|
||||
|
||||
secondary = "secondary"
|
||||
>secondary : string
|
||||
|
||||
} = { primary: "noSkill", secondary: "noSkill" }
|
||||
>{ primary: "noSkill", secondary: "noSkill" } : { primary?: string; secondary?: string; }
|
||||
>primary : string
|
||||
>"noSkill" : string
|
||||
>secondary : string
|
||||
>"noSkill" : string
|
||||
|
||||
} of multiRobots) {
|
||||
>multiRobots : MultiRobot[]
|
||||
|
||||
console.log(nameA);
|
||||
>console.log(nameA) : void
|
||||
>console.log : (msg: any) => void
|
||||
>console : { log(msg: any): void; }
|
||||
>log : (msg: any) => void
|
||||
>nameA : string
|
||||
}
|
||||
for ({
|
||||
>{ name = "noName", skills: { primary = "primary", secondary = "secondary" } = { primary: "noSkill", secondary: "noSkill" }} : { name: string; skills: { primary?: string; secondary?: string; }; }
|
||||
|
||||
name = "noName",
|
||||
>name : MultiRobot
|
||||
|
||||
skills: {
|
||||
>skills : MultiRobot
|
||||
>{ primary = "primary", secondary = "secondary" } = { primary: "noSkill", secondary: "noSkill" } : { primary?: string; secondary?: string; }
|
||||
>{ primary = "primary", secondary = "secondary" } : { primary?: string; secondary?: string; }
|
||||
|
||||
primary = "primary",
|
||||
>primary : string
|
||||
|
||||
secondary = "secondary"
|
||||
>secondary : string
|
||||
|
||||
} = { primary: "noSkill", secondary: "noSkill" }
|
||||
>{ primary: "noSkill", secondary: "noSkill" } : { primary?: string; secondary?: string; }
|
||||
>primary : string
|
||||
>"noSkill" : string
|
||||
>secondary : string
|
||||
>"noSkill" : string
|
||||
|
||||
} of getMultiRobots()) {
|
||||
>getMultiRobots() : MultiRobot[]
|
||||
>getMultiRobots : () => MultiRobot[]
|
||||
|
||||
console.log(nameA);
|
||||
>console.log(nameA) : void
|
||||
>console.log : (msg: any) => void
|
||||
>console : { log(msg: any): void; }
|
||||
>log : (msg: any) => void
|
||||
>nameA : string
|
||||
}
|
||||
for ({
|
||||
>{ name = "noName", skills: { primary = "primary", secondary = "secondary" } = { primary: "noSkill", secondary: "noSkill" }} : { name: string; skills: { primary?: string; secondary?: string; }; }
|
||||
|
||||
name = "noName",
|
||||
>name : { name: string; skills: { primary: string; secondary: string; }; }
|
||||
|
||||
skills: {
|
||||
>skills : { name: string; skills: { primary: string; secondary: string; }; }
|
||||
>{ primary = "primary", secondary = "secondary" } = { primary: "noSkill", secondary: "noSkill" } : { primary?: string; secondary?: string; }
|
||||
>{ primary = "primary", secondary = "secondary" } : { primary?: string; secondary?: string; }
|
||||
|
||||
primary = "primary",
|
||||
>primary : string
|
||||
|
||||
secondary = "secondary"
|
||||
>secondary : string
|
||||
|
||||
} = { primary: "noSkill", secondary: "noSkill" }
|
||||
>{ primary: "noSkill", secondary: "noSkill" } : { primary?: string; secondary?: string; }
|
||||
>primary : string
|
||||
>"noSkill" : string
|
||||
>secondary : string
|
||||
>"noSkill" : string
|
||||
|
||||
} of [{ name: "mower", skills: { primary: "mowing", secondary: "none" } },
|
||||
>[{ name: "mower", skills: { primary: "mowing", secondary: "none" } }, { name: "trimmer", skills: { primary: "trimming", secondary: "edging" } }] : { name: string; skills: { primary: string; secondary: string; }; }[]
|
||||
>{ name: "mower", skills: { primary: "mowing", secondary: "none" } } : { name: string; skills: { primary: string; secondary: string; }; }
|
||||
>name : string
|
||||
>"mower" : string
|
||||
>skills : { primary: string; secondary: string; }
|
||||
>{ primary: "mowing", secondary: "none" } : { primary: string; secondary: string; }
|
||||
>primary : string
|
||||
>"mowing" : string
|
||||
>secondary : string
|
||||
>"none" : string
|
||||
|
||||
{ name: "trimmer", skills: { primary: "trimming", secondary: "edging" } }]) {
|
||||
>{ name: "trimmer", skills: { primary: "trimming", secondary: "edging" } } : { name: string; skills: { primary: string; secondary: string; }; }
|
||||
>name : string
|
||||
>"trimmer" : string
|
||||
>skills : { primary: string; secondary: string; }
|
||||
>{ primary: "trimming", secondary: "edging" } : { primary: string; secondary: string; }
|
||||
>primary : string
|
||||
>"trimming" : string
|
||||
>secondary : string
|
||||
>"edging" : string
|
||||
|
||||
console.log(nameA);
|
||||
>console.log(nameA) : void
|
||||
>console.log : (msg: any) => void
|
||||
>console : { log(msg: any): void; }
|
||||
>log : (msg: any) => void
|
||||
>nameA : string
|
||||
}
|
||||
@@ -0,0 +1,105 @@
|
||||
// @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 = "noName"] of robots) {
|
||||
console.log(nameA);
|
||||
}
|
||||
for (let [, nameA = "noName"] of getRobots()) {
|
||||
console.log(nameA);
|
||||
}
|
||||
for (let [, nameA = "noName"] of [robotA, robotB]) {
|
||||
console.log(nameA);
|
||||
}
|
||||
for (let [, [
|
||||
primarySkillA = "primary",
|
||||
secondarySkillA = "secondary"
|
||||
] = ["skill1", "skill2"]] of multiRobots) {
|
||||
console.log(primarySkillA);
|
||||
}
|
||||
for (let [, [
|
||||
primarySkillA = "primary",
|
||||
secondarySkillA = "secondary"
|
||||
] = ["skill1", "skill2"]] of getMultiRobots()) {
|
||||
console.log(primarySkillA);
|
||||
}
|
||||
for (let [, [
|
||||
primarySkillA = "primary",
|
||||
secondarySkillA = "secondary"
|
||||
] = ["skill1", "skill2"]] of [multiRobotA, multiRobotB]) {
|
||||
console.log(primarySkillA);
|
||||
}
|
||||
|
||||
for (let [numberB = -1] of robots) {
|
||||
console.log(numberB);
|
||||
}
|
||||
for (let [numberB = -1] of getRobots()) {
|
||||
console.log(numberB);
|
||||
}
|
||||
for (let [numberB = -1] of [robotA, robotB]) {
|
||||
console.log(numberB);
|
||||
}
|
||||
for (let [nameB = "noName"] of multiRobots) {
|
||||
console.log(nameB);
|
||||
}
|
||||
for (let [nameB = "noName"] of getMultiRobots()) {
|
||||
console.log(nameB);
|
||||
}
|
||||
for (let [nameB = "noName"] of [multiRobotA, multiRobotB]) {
|
||||
console.log(nameB);
|
||||
}
|
||||
|
||||
for (let [numberA2 = -1, nameA2 = "noName", skillA2 = "skill"] of robots) {
|
||||
console.log(nameA2);
|
||||
}
|
||||
for (let [numberA2 = -1, nameA2 = "noName", skillA2 = "skill"] of getRobots()) {
|
||||
console.log(nameA2);
|
||||
}
|
||||
for (let [numberA2 = -1, nameA2 = "noName", skillA2 = "skill"] of [robotA, robotB]) {
|
||||
console.log(nameA2);
|
||||
}
|
||||
for (let [nameMA = "noName", [
|
||||
primarySkillA = "primary",
|
||||
secondarySkillA = "secondary"
|
||||
] = ["skill1", "skill2"]] of multiRobots) {
|
||||
console.log(nameMA);
|
||||
}
|
||||
for (let [nameMA = "noName", [
|
||||
primarySkillA = "primary",
|
||||
secondarySkillA = "secondary"
|
||||
] = ["skill1", "skill2"]] of getMultiRobots()) {
|
||||
console.log(nameMA);
|
||||
}
|
||||
for (let [nameMA = "noName", [
|
||||
primarySkillA = "primary",
|
||||
secondarySkillA = "secondary"
|
||||
] = ["skill1", "skill2"]] of [multiRobotA, multiRobotB]) {
|
||||
console.log(nameMA);
|
||||
}
|
||||
|
||||
for (let [numberA3 = -1, ...robotAInfo] of robots) {
|
||||
console.log(numberA3);
|
||||
}
|
||||
for (let [numberA3 = -1, ...robotAInfo] of getRobots()) {
|
||||
console.log(numberA3);
|
||||
}
|
||||
for (let [numberA3 = -1, ...robotAInfo] of [robotA, robotB]) {
|
||||
console.log(numberA3);
|
||||
}
|
||||
@@ -0,0 +1,110 @@
|
||||
// @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;
|
||||
}
|
||||
|
||||
let nameA: string, primarySkillA: string, secondarySkillA: string;
|
||||
let numberB: number, nameB: string;
|
||||
let numberA2: number, nameA2: string, skillA2: string, nameMA: string;
|
||||
let numberA3: number, robotAInfo: (number | string)[], multiRobotAInfo: (string | [string, string])[];
|
||||
|
||||
for ([, nameA = "noName"] of robots) {
|
||||
console.log(nameA);
|
||||
}
|
||||
for ([, nameA = "noName"] of getRobots()) {
|
||||
console.log(nameA);
|
||||
}
|
||||
for ([, nameA = "noName"] of [robotA, robotB]) {
|
||||
console.log(nameA);
|
||||
}
|
||||
for ([, [
|
||||
primarySkillA = "primary",
|
||||
secondarySkillA = "secondary"
|
||||
] = ["skill1", "skill2"]] of multiRobots) {
|
||||
console.log(primarySkillA);
|
||||
}
|
||||
for ([, [
|
||||
primarySkillA = "primary",
|
||||
secondarySkillA = "secondary"
|
||||
] = ["skill1", "skill2"]] of getMultiRobots()) {
|
||||
console.log(primarySkillA);
|
||||
}
|
||||
for ([, [
|
||||
primarySkillA = "primary",
|
||||
secondarySkillA = "secondary"
|
||||
] = ["skill1", "skill2"]] of [multiRobotA, multiRobotB]) {
|
||||
console.log(primarySkillA);
|
||||
}
|
||||
|
||||
for ([numberB = -1] of robots) {
|
||||
console.log(numberB);
|
||||
}
|
||||
for ([numberB = -1] of getRobots()) {
|
||||
console.log(numberB);
|
||||
}
|
||||
for ([numberB = -1] of [robotA, robotB]) {
|
||||
console.log(numberB);
|
||||
}
|
||||
for ([nameB = "noName"] of multiRobots) {
|
||||
console.log(nameB);
|
||||
}
|
||||
for ([nameB = "noName"] of getMultiRobots()) {
|
||||
console.log(nameB);
|
||||
}
|
||||
for ([nameB = "noName"] of [multiRobotA, multiRobotB]) {
|
||||
console.log(nameB);
|
||||
}
|
||||
|
||||
for ([numberA2 = -1, nameA2 = "noName", skillA2 = "skill"] of robots) {
|
||||
console.log(nameA2);
|
||||
}
|
||||
for ([numberA2 = -1, nameA2 = "noName", skillA2 = "skill"] of getRobots()) {
|
||||
console.log(nameA2);
|
||||
}
|
||||
for ([numberA2 = -1, nameA2 = "noName", skillA2 = "skill"] of [robotA, robotB]) {
|
||||
console.log(nameA2);
|
||||
}
|
||||
for ([nameMA = "noName", [
|
||||
primarySkillA = "primary",
|
||||
secondarySkillA = "secondary"
|
||||
] = ["skill1", "skill2"]] of multiRobots) {
|
||||
console.log(nameMA);
|
||||
}
|
||||
for ([nameMA = "noName", [
|
||||
primarySkillA = "primary",
|
||||
secondarySkillA = "secondary"
|
||||
] = ["skill1", "skill2"]] of getMultiRobots()) {
|
||||
console.log(nameMA);
|
||||
}
|
||||
for ([nameMA = "noName", [
|
||||
primarySkillA = "primary",
|
||||
secondarySkillA = "secondary"
|
||||
] = ["skill1", "skill2"]] of [multiRobotA, multiRobotB]) {
|
||||
console.log(nameMA);
|
||||
}
|
||||
|
||||
for ([numberA3 = -1, ...robotAInfo] of robots) {
|
||||
console.log(numberA3);
|
||||
}
|
||||
for ([numberA3 = -1, ...robotAInfo] of getRobots()) {
|
||||
console.log(numberA3);
|
||||
}
|
||||
for ([numberA3 = -1, ...robotAInfo] of [robotA, robotB]) {
|
||||
console.log(numberA3);
|
||||
}
|
||||
@@ -0,0 +1,90 @@
|
||||
// @sourcemap: true
|
||||
declare var console: {
|
||||
log(msg: any): void;
|
||||
}
|
||||
interface Robot {
|
||||
name: string;
|
||||
skill: string;
|
||||
}
|
||||
|
||||
interface MultiRobot {
|
||||
name: string;
|
||||
skills: {
|
||||
primary?: string;
|
||||
secondary?: string;
|
||||
};
|
||||
}
|
||||
|
||||
let robots: Robot[] = [{ name: "mower", skill: "mowing" }, { name: "trimmer", skill: "trimming" }];
|
||||
let multiRobots: MultiRobot[] = [{ name: "mower", skills: { primary: "mowing", secondary: "none" } },
|
||||
{ name: "trimmer", skills: { primary: "trimming", secondary: "edging" } }];
|
||||
|
||||
function getRobots() {
|
||||
return robots;
|
||||
}
|
||||
|
||||
function getMultiRobots() {
|
||||
return multiRobots;
|
||||
}
|
||||
|
||||
for (let {name: nameA = "noName" } of robots) {
|
||||
console.log(nameA);
|
||||
}
|
||||
for (let {name: nameA = "noName" } of getRobots()) {
|
||||
console.log(nameA);
|
||||
}
|
||||
for (let {name: nameA = "noName" } of [{ name: "mower", skill: "mowing" }, { name: "trimmer", skill: "trimming" }]) {
|
||||
console.log(nameA);
|
||||
}
|
||||
for (let { skills: { primary: primaryA = "primary", secondary: secondaryA = "secondary" } =
|
||||
{ primary: "nosKill", secondary: "noSkill" } } of multiRobots) {
|
||||
console.log(primaryA);
|
||||
}
|
||||
for (let { skills: { primary: primaryA = "primary", secondary: secondaryA = "secondary" } =
|
||||
{ primary: "nosKill", secondary: "noSkill" } } of getMultiRobots()) {
|
||||
console.log(primaryA);
|
||||
}
|
||||
for (let { skills: { primary: primaryA = "primary", secondary: secondaryA = "secondary" } =
|
||||
{ primary: "nosKill", secondary: "noSkill" } } of
|
||||
<MultiRobot[]>[{ name: "mower", skills: { primary: "mowing", secondary: "none" } },
|
||||
{ name: "trimmer", skills: { primary: "trimming", secondary: "edging" } }]) {
|
||||
console.log(primaryA);
|
||||
}
|
||||
|
||||
for (let {name: nameA = "noName", skill: skillA = "noSkill" } of robots) {
|
||||
console.log(nameA);
|
||||
}
|
||||
for (let {name: nameA = "noName", skill: skillA = "noSkill" } of getRobots()) {
|
||||
console.log(nameA);
|
||||
}
|
||||
for (let {name: nameA = "noName", skill: skillA = "noSkill" } of [{ name: "mower", skill: "mowing" }, { name: "trimmer", skill: "trimming" }]) {
|
||||
console.log(nameA);
|
||||
}
|
||||
for (let {
|
||||
name: nameA = "noName",
|
||||
skills: {
|
||||
primary: primaryA = "primary",
|
||||
secondary: secondaryA = "secondary"
|
||||
} = { primary: "noSkill", secondary: "noSkill" }
|
||||
} of multiRobots) {
|
||||
console.log(nameA);
|
||||
}
|
||||
for (let {
|
||||
name: nameA = "noName",
|
||||
skills: {
|
||||
primary: primaryA = "primary",
|
||||
secondary: secondaryA = "secondary"
|
||||
} = { primary: "noSkill", secondary: "noSkill" }
|
||||
} of getMultiRobots()) {
|
||||
console.log(nameA);
|
||||
}
|
||||
for (let {
|
||||
name: nameA = "noName",
|
||||
skills: {
|
||||
primary: primaryA = "primary",
|
||||
secondary: secondaryA = "secondary"
|
||||
} = { primary: "noSkill", secondary: "noSkill" }
|
||||
} of <MultiRobot[]>[{ name: "mower", skills: { primary: "mowing", secondary: "none" } },
|
||||
{ name: "trimmer", skills: { primary: "trimming", secondary: "edging" } }]) {
|
||||
console.log(nameA);
|
||||
}
|
||||
@@ -0,0 +1,167 @@
|
||||
// @sourcemap: true
|
||||
declare var console: {
|
||||
log(msg: any): void;
|
||||
}
|
||||
interface Robot {
|
||||
name: string;
|
||||
skill: string;
|
||||
}
|
||||
|
||||
interface MultiRobot {
|
||||
name: string;
|
||||
skills: {
|
||||
primary: string;
|
||||
secondary: string;
|
||||
};
|
||||
}
|
||||
|
||||
let robots: Robot[] = [{ name: "mower", skill: "mowing" }, { name: "trimmer", skill: "trimming" }];
|
||||
let multiRobots: MultiRobot[] = [{ name: "mower", skills: { primary: "mowing", secondary: "none" } },
|
||||
{ name: "trimmer", skills: { primary: "trimming", secondary: "edging" } }];
|
||||
|
||||
function getRobots() {
|
||||
return robots;
|
||||
}
|
||||
|
||||
function getMultiRobots() {
|
||||
return multiRobots;
|
||||
}
|
||||
|
||||
let nameA: string, primaryA: string, secondaryA: string, i: number, skillA: string;
|
||||
let name: string, primary: string, secondary: string, skill: string;
|
||||
|
||||
for ({name: nameA = "noName" } of robots) {
|
||||
console.log(nameA);
|
||||
}
|
||||
for ({name: nameA = "noName" } of getRobots()) {
|
||||
console.log(nameA);
|
||||
}
|
||||
for ({name: nameA = "noName" } of [{ name: "mower", skill: "mowing" }, { name: "trimmer", skill: "trimming" }]) {
|
||||
console.log(nameA);
|
||||
}
|
||||
for ({ skills: { primary: primaryA = "primary", secondary: secondaryA = "secondary" } =
|
||||
{ primary: "nosKill", secondary: "noSkill" } } of multiRobots) {
|
||||
console.log(primaryA);
|
||||
}
|
||||
for ({ skills: { primary: primaryA = "primary", secondary: secondaryA = "secondary" } =
|
||||
{ primary: "nosKill", secondary: "noSkill" } } of getMultiRobots()) {
|
||||
console.log(primaryA);
|
||||
}
|
||||
for ({ skills: { primary: primaryA = "primary", secondary: secondaryA = "secondary" } =
|
||||
{ primary: "nosKill", secondary: "noSkill" } } of
|
||||
<MultiRobot[]>[{ name: "mower", skills: { primary: "mowing", secondary: "none" } },
|
||||
{ name: "trimmer", skills: { primary: "trimming", secondary: "edging" } }]) {
|
||||
console.log(primaryA);
|
||||
}
|
||||
|
||||
for ({ name = "noName" } of robots) {
|
||||
console.log(nameA);
|
||||
}
|
||||
for ({ name = "noName" } of getRobots()) {
|
||||
console.log(nameA);
|
||||
}
|
||||
for ({ name = "noName" } of [{ name: "mower", skill: "mowing" }, { name: "trimmer", skill: "trimming" }]) {
|
||||
console.log(nameA);
|
||||
}
|
||||
for ({
|
||||
skills: {
|
||||
primary = "primary",
|
||||
secondary = "secondary"
|
||||
} = { primary: "noSkill", secondary: "noSkill" }
|
||||
} of multiRobots) {
|
||||
console.log(primaryA);
|
||||
}
|
||||
for ({
|
||||
skills: {
|
||||
primary = "primary",
|
||||
secondary = "secondary"
|
||||
} = { primary: "noSkill", secondary: "noSkill" }
|
||||
} of getMultiRobots()) {
|
||||
console.log(primaryA);
|
||||
}
|
||||
for ({
|
||||
skills: {
|
||||
primary = "primary",
|
||||
secondary = "secondary"
|
||||
} = { primary: "noSkill", secondary: "noSkill" }
|
||||
} of [{ name: "mower", skills: { primary: "mowing", secondary: "none" } },
|
||||
{ name: "trimmer", skills: { primary: "trimming", secondary: "edging" } }]) {
|
||||
console.log(primaryA);
|
||||
}
|
||||
|
||||
|
||||
for ({name: nameA = "noName", skill: skillA = "noSkill" } of robots) {
|
||||
console.log(nameA);
|
||||
}
|
||||
for ({name: nameA = "noName", skill: skillA = "noSkill" } of getRobots()) {
|
||||
console.log(nameA);
|
||||
}
|
||||
for ({name: nameA = "noName", skill: skillA = "noSkill" } of [{ name: "mower", skill: "mowing" }, { name: "trimmer", skill: "trimming" }]) {
|
||||
console.log(nameA);
|
||||
}
|
||||
for ({
|
||||
name: nameA = "noName",
|
||||
skills: {
|
||||
primary: primaryA = "primary",
|
||||
secondary: secondaryA = "secondary"
|
||||
} = { primary: "noSkill", secondary: "noSkill" }
|
||||
} of multiRobots) {
|
||||
console.log(nameA);
|
||||
}
|
||||
for ({
|
||||
name: nameA = "noName",
|
||||
skills: {
|
||||
primary: primaryA = "primary",
|
||||
secondary: secondaryA = "secondary"
|
||||
} = { primary: "noSkill", secondary: "noSkill" }
|
||||
} of getMultiRobots()) {
|
||||
console.log(nameA);
|
||||
}
|
||||
for ({
|
||||
name: nameA = "noName",
|
||||
skills: {
|
||||
primary: primaryA = "primary",
|
||||
secondary: secondaryA = "secondary"
|
||||
} = { primary: "noSkill", secondary: "noSkill" }
|
||||
} of <MultiRobot[]>[{ name: "mower", skills: { primary: "mowing", secondary: "none" } },
|
||||
{ name: "trimmer", skills: { primary: "trimming", secondary: "edging" } }]) {
|
||||
console.log(nameA);
|
||||
}
|
||||
|
||||
for ({ name = "noName", skill = "noSkill" } of robots) {
|
||||
console.log(nameA);
|
||||
}
|
||||
for ({ name = "noName", skill = "noSkill" } of getRobots()) {
|
||||
console.log(nameA);
|
||||
}
|
||||
for ({ name = "noName", skill = "noSkill" } of [{ name: "mower", skill: "mowing" }, { name: "trimmer", skill: "trimming" }]) {
|
||||
console.log(nameA);
|
||||
}
|
||||
for ({
|
||||
name = "noName",
|
||||
skills: {
|
||||
primary = "primary",
|
||||
secondary = "secondary"
|
||||
} = { primary: "noSkill", secondary: "noSkill" }
|
||||
} of multiRobots) {
|
||||
console.log(nameA);
|
||||
}
|
||||
for ({
|
||||
name = "noName",
|
||||
skills: {
|
||||
primary = "primary",
|
||||
secondary = "secondary"
|
||||
} = { primary: "noSkill", secondary: "noSkill" }
|
||||
} of getMultiRobots()) {
|
||||
console.log(nameA);
|
||||
}
|
||||
for ({
|
||||
name = "noName",
|
||||
skills: {
|
||||
primary = "primary",
|
||||
secondary = "secondary"
|
||||
} = { primary: "noSkill", secondary: "noSkill" }
|
||||
} of [{ name: "mower", skills: { primary: "mowing", secondary: "none" } },
|
||||
{ name: "trimmer", skills: { primary: "trimming", secondary: "edging" } }]) {
|
||||
console.log(nameA);
|
||||
}
|
||||
Reference in New Issue
Block a user