addressed PR feedback · linuxcodefire/TypeScript@a556209 · GitHub
Skip to content

Commit a556209

Browse files
committed
addressed PR feedback
1 parent a975895 commit a556209

4 files changed

Lines changed: 6 additions & 6 deletions

File tree

src/compiler/checker.ts

Lines changed: 1 addition & 1 deletion

src/compiler/diagnosticMessages.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -800,7 +800,7 @@
800800
"category": "Error",
801801
"code": 1311
802802
},
803-
"'=' can only be used in object literal properties inside destructuring assignment.": {
803+
"'=' can only be used in an object literal property inside a destructuring assignment.": {
804804
"category": "Error",
805805
"code": 1312
806806
},

tests/baselines/reference/shorthandPropertyAssignmentsInDestructuring.errors.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ tests/cases/compiler/shorthandPropertyAssignmentsInDestructuring.ts(87,19): erro
1313
Types of property 'x' are incompatible.
1414
Type 'number' is not assignable to type 'string'.
1515
tests/cases/compiler/shorthandPropertyAssignmentsInDestructuring.ts(113,12): error TS2304: Cannot find name 's'.
16-
tests/cases/compiler/shorthandPropertyAssignmentsInDestructuring.ts(113,14): error TS1312: '=' can only be used in object literal properties inside destructuring assignment.
16+
tests/cases/compiler/shorthandPropertyAssignmentsInDestructuring.ts(113,14): error TS1312: '=' can only be used in an object literal property inside a destructuring assignment.
1717

1818

1919
==== tests/cases/compiler/shorthandPropertyAssignmentsInDestructuring.ts (12 errors) ====
@@ -157,7 +157,7 @@ tests/cases/compiler/shorthandPropertyAssignmentsInDestructuring.ts(113,14): err
157157
~
158158
!!! error TS2304: Cannot find name 's'.
159159
~
160-
!!! error TS1312: '=' can only be used in object literal properties inside destructuring assignment.
160+
!!! error TS1312: '=' can only be used in an object literal property inside a destructuring assignment.
161161
});
162162

163163
function foo({a = 4, b = { x: 5 }}) {

tests/baselines/reference/shorthandPropertyAssignmentsInDestructuring_ES6.errors.txt

Lines changed: 2 additions & 2 deletions

0 commit comments

Comments
 (0)