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-1
Original file line number
Diff line number
Diff line change
@@ -327,7 +327,6 @@ module ts {
327
327
Property_0_does_not_exist_on_const_enum_1: {code: 2479,category: DiagnosticCategory.Error,key: "Property '{0}' does not exist on 'const' enum '{1}'."},
328
328
let_is_not_allowed_to_be_used_as_a_name_in_let_or_const_declarations: {code: 2480,category: DiagnosticCategory.Error,key: "'let' is not allowed to be used as a name in 'let' or 'const' declarations."},
329
329
Cannot_initialize_outer_scoped_variable_0_in_the_same_scope_as_block_scoped_declaration_1: {code: 2481,category: DiagnosticCategory.Error,key: "Cannot initialize outer scoped variable '{0}' in the same scope as block scoped declaration '{1}'."},
330
-
for_of_statements_are_only_available_when_targeting_ECMAScript_6_or_higher: {code: 2482,category: DiagnosticCategory.Error,key: "'for...of' statements are only available when targeting ECMAScript 6 or higher."},
331
330
The_left_hand_side_of_a_for_of_statement_cannot_use_a_type_annotation: {code: 2483,category: DiagnosticCategory.Error,key: "The left-hand side of a 'for...of' statement cannot use a type annotation."},
332
331
Export_declaration_conflicts_with_exported_declaration_of_0: {code: 2484,category: DiagnosticCategory.Error,key: "Export declaration conflicts with exported declaration of '{0}'"},
333
332
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."},
@@ -339,6 +338,8 @@ module ts {
339
338
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."},
Tuple_type_0_with_length_1_cannot_be_assigned_to_tuple_with_length_2: {code: 2493,category: DiagnosticCategory.Error,key: "Tuple type '{0}' with length '{1}' cannot be assigned to tuple with length '{2}'."},
341
+
Using_a_string_in_a_for_of_statement_is_only_supported_in_ECMAScript_5_and_higher: {code: 2494,category: DiagnosticCategory.Error,key: "Using a string in a 'for...of' statement is only supported in ECMAScript 5 and higher."},
342
+
Type_0_is_not_an_array_type_or_a_string_type: {code: 2461,category: DiagnosticCategory.Error,key: "Type '{0}' is not an array type or a string type."},
342
343
Import_declaration_0_is_using_private_name_1: {code: 4000,category: DiagnosticCategory.Error,key: "Import declaration '{0}' is using private name '{1}'."},
343
344
Type_parameter_0_of_exported_class_has_or_is_using_private_name_1: {code: 4002,category: DiagnosticCategory.Error,key: "Type parameter '{0}' of exported class has or is using private name '{1}'."},
344
345
Type_parameter_0_of_exported_interface_has_or_is_using_private_name_1: {code: 4004,category: DiagnosticCategory.Error,key: "Type parameter '{0}' of exported interface has or is using private name '{1}'."},
tests/cases/conformance/statements/for-ofStatements/ES3For-ofTypeCheck1.ts(1,15): error TS2494: Using a string in a 'for...of' statement is only supported in ECMAScript 5 and higher.
tests/cases/conformance/statements/for-ofStatements/ES3For-ofTypeCheck4.ts(2,17): error TS2494: Using a string in a 'for...of' statement is only supported in ECMAScript 5 and higher.
tests/cases/conformance/statements/for-ofStatements/ES5For-of1.ts(1,1): error TS2482: 'for...of' statements are only available when targeting ECMAScript 6 or higher.
1
+
tests/cases/conformance/statements/for-ofStatements/ES5For-of1.ts(2,5): error TS2304: Cannot find name 'console'.
0 commit comments