Accept baseline

This commit is contained in:
Ryohei Ikegami
2015-10-27 09:49:57 -07:00
committed by Mohamed Hegazy
parent 18cf2e490f
commit bf7d6574d5
2 changed files with 26 additions and 0 deletions
@@ -0,0 +1,12 @@
tests/cases/compiler/bindingPatternInParameter01.ts(4,3): error TS2304: Cannot find name 'console'.
==== tests/cases/compiler/bindingPatternInParameter01.ts (1 errors) ====
const nestedArray = [[[1, 2]], [[3, 4]]];
nestedArray.forEach(([[a, b]]) => {
console.log(a, b);
~~~~~~~
!!! error TS2304: Cannot find name 'console'.
});
@@ -0,0 +1,14 @@
//// [bindingPatternInParameter01.ts]
const nestedArray = [[[1, 2]], [[3, 4]]];
nestedArray.forEach(([[a, b]]) => {
console.log(a, b);
});
//// [bindingPatternInParameter01.js]
var nestedArray = [[[1, 2]], [[3, 4]]];
nestedArray.forEach(function (_a) {
var _b = _a[0], a = _b[0], b = _b[1];
console.log(a, b);
});