mirror of
https://github.com/microsoft/TypeScript.git
synced 2026-05-10 21:07:52 -05:00
Accept baseline
This commit is contained in:
@@ -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'.
|
||||
});
|
||||
|
||||
14
tests/baselines/reference/bindingPatternInParameter01.js
Normal file
14
tests/baselines/reference/bindingPatternInParameter01.js
Normal file
@@ -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);
|
||||
});
|
||||
Reference in New Issue
Block a user