You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/compiler/diagnosticInformationMap.generated.ts
+2-2Lines changed: 2 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -340,8 +340,8 @@ module ts {
340
340
The_left_hand_side_of_a_for_of_statement_cannot_be_a_previously_defined_constant: {code: 2485,category: DiagnosticCategory.Error,key: "The left-hand side of a 'for...of' statement cannot be a previously defined constant."},
341
341
The_left_hand_side_of_a_for_in_statement_cannot_be_a_previously_defined_constant: {code: 2486,category: DiagnosticCategory.Error,key: "The left-hand side of a 'for...in' statement cannot be a previously defined constant."},
342
342
Invalid_left_hand_side_in_for_of_statement: {code: 2487,category: DiagnosticCategory.Error,key: "Invalid left-hand side in 'for...of' statement."},
343
-
The_right_hand_side_of_a_for_of_statement_must_have_a_Symbol_iterator_method_that_returns_an_iterator: {code: 2488,category: DiagnosticCategory.Error,key: "The right-hand side of a 'for...of' statement must have a '[Symbol.iterator]()' method that returns an iterator."},
344
-
The_iterator_returned_by_the_right_hand_side_of_a_for_of_statement_must_have_a_next_method: {code: 2489,category: DiagnosticCategory.Error,key: "The iterator returned by the right-hand side of a 'for...of' statement must have a 'next()' method."},
343
+
Type_must_have_a_Symbol_iterator_method_that_returns_an_iterator: {code: 2488,category: DiagnosticCategory.Error,key: "Type must have a '[Symbol.iterator]()' method that returns an iterator."},
344
+
An_iterator_must_have_a_next_method: {code: 2489,category: DiagnosticCategory.Error,key: "An iterator must have a 'next()' method."},
345
345
The_type_returned_by_the_next_method_of_an_iterator_must_have_a_value_property: {code: 2490,category: DiagnosticCategory.Error,key: "The type returned by the 'next()' method of an iterator must have a 'value' property."},
346
346
The_left_hand_side_of_a_for_in_statement_cannot_be_a_destructuring_pattern: {code: 2491,category: DiagnosticCategory.Error,key: "The left-hand side of a 'for...in' statement cannot be a destructuring pattern."},
Copy file name to clipboardExpand all lines: tests/baselines/reference/for-of14.errors.txt
+2-2Lines changed: 2 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -1,11 +1,11 @@
1
-
tests/cases/conformance/es6/for-ofStatements/for-of14.ts(2,11): error TS2488: The right-hand side of a 'for...of' statement must have a '[Symbol.iterator]()' method that returns an iterator.
1
+
tests/cases/conformance/es6/for-ofStatements/for-of14.ts(2,11): error TS2488: Type must have a '[Symbol.iterator]()' method that returns an iterator.
Copy file name to clipboardExpand all lines: tests/baselines/reference/for-of16.errors.txt
+2-2Lines changed: 2 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -1,11 +1,11 @@
1
-
tests/cases/conformance/es6/for-ofStatements/for-of16.ts(2,11): error TS2489: The iterator returned by the right-hand side of a 'for...of' statement must have a 'next()' method.
1
+
tests/cases/conformance/es6/for-ofStatements/for-of16.ts(2,11): error TS2489: An iterator must have a 'next()' method.
0 commit comments