Skip to content

Commit d163205

Browse files
committed
accepted baselines
1 parent db324db commit d163205

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

tests/baselines/reference/shadowingViaLocalValueOrBindingElement.errors.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,10 +18,10 @@ tests/cases/compiler/shadowingViaLocalValueOrBindingElement.ts(8,18): error TS24
1818
var { x: x = 0 } = { x: 0 }; // Error
1919
~
2020
!!! error TS2481: Cannot initialize outer scoped variable 'x' in the same scope as block scoped declaration 'x'.
21-
var { x } = { x: 0 }; // No error, even though the let x is being initialized
21+
var { x } = { x: 0 }; // Error
2222
~
2323
!!! error TS2481: Cannot initialize outer scoped variable 'x' in the same scope as block scoped declaration 'x'.
24-
var { x: x } = { x: 0 }; // No error, even though the let x is being initialized
24+
var { x: x } = { x: 0 }; // Error
2525
~
2626
!!! error TS2481: Cannot initialize outer scoped variable 'x' in the same scope as block scoped declaration 'x'.
2727
}

tests/baselines/reference/shadowingViaLocalValueOrBindingElement.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@ if (true) {
55
var x = 0; // Error
66
var { x = 0 } = { x: 0 }; // Error
77
var { x: x = 0 } = { x: 0 }; // Error
8-
var { x } = { x: 0 }; // No error, even though the let x is being initialized
9-
var { x: x } = { x: 0 }; // No error, even though the let x is being initialized
8+
var { x } = { x: 0 }; // Error
9+
var { x: x } = { x: 0 }; // Error
1010
}
1111
}
1212

@@ -23,9 +23,9 @@ if (true) {
2323
}).x, x = _b === void 0 ? 0 : _b; // Error
2424
var x = ({
2525
_x: 0
26-
}).x; // No error, even though the let x is being initialized
26+
}).x; // Error
2727
var x = ({
2828
_x: 0
29-
}).x; // No error, even though the let x is being initialized
29+
}).x; // Error
3030
}
3131
}

0 commit comments

Comments
 (0)