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
@@ -205,7 +205,7 @@ module ts {
205
205
The_operand_of_an_increment_or_decrement_operator_must_be_a_variable_property_or_indexer: {code: 2357,category: DiagnosticCategory.Error,key: "The operand of an increment or decrement operator must be a variable, property or indexer."},
206
206
The_left_hand_side_of_an_instanceof_expression_must_be_of_type_any_an_object_type_or_a_type_parameter: {code: 2358,category: DiagnosticCategory.Error,key: "The left-hand side of an 'instanceof' expression must be of type 'any', an object type or a type parameter."},
207
207
The_right_hand_side_of_an_instanceof_expression_must_be_of_type_any_or_of_a_type_assignable_to_the_Function_interface_type: {code: 2359,category: DiagnosticCategory.Error,key: "The right-hand side of an 'instanceof' expression must be of type 'any' or of a type assignable to the 'Function' interface type."},
208
-
The_left_hand_side_of_an_in_expression_must_be_of_types_any_string_or_number: {code: 2360,category: DiagnosticCategory.Error,key: "The left-hand side of an 'in' expression must be of types 'any', 'string'or 'number'."},
208
+
The_left_hand_side_of_an_in_expression_must_be_of_type_any_string_number_or_symbol: {code: 2360,category: DiagnosticCategory.Error,key: "The left-hand side of an 'in' expression must be of type 'any', 'string', 'number', or 'symbol'."},
209
209
The_right_hand_side_of_an_in_expression_must_be_of_type_any_an_object_type_or_a_type_parameter: {code: 2361,category: DiagnosticCategory.Error,key: "The right-hand side of an 'in' expression must be of type 'any', an object type or a type parameter"},
210
210
The_left_hand_side_of_an_arithmetic_operation_must_be_of_type_any_number_or_an_enum_type: {code: 2362,category: DiagnosticCategory.Error,key: "The left-hand side of an arithmetic operation must be of type 'any', 'number' or an enum type."},
211
211
The_right_hand_side_of_an_arithmetic_operation_must_be_of_type_any_number_or_an_enum_type: {code: 2363,category: DiagnosticCategory.Error,key: "The right-hand side of an arithmetic operation must be of type 'any', 'number' or an enum type."},
@@ -305,6 +305,7 @@ module ts {
305
305
super_cannot_be_referenced_in_a_computed_property_name: {code: 2466,category: DiagnosticCategory.Error,key: "'super' cannot be referenced in a computed property name."},
306
306
A_computed_property_name_cannot_reference_a_type_parameter_from_its_containing_type: {code: 2467,category: DiagnosticCategory.Error,key: "A computed property name cannot reference a type parameter from its containing type."},
307
307
Cannot_find_global_value_0: {code: 2468,category: DiagnosticCategory.Error,key: "Cannot find global value '{0}'."},
308
+
The_0_operator_cannot_be_applied_to_a_value_of_type_symbol: {code: 2469,category: DiagnosticCategory.Error,key: "The '{0}' operator cannot be applied to a value of type 'symbol'."},
308
309
Import_declaration_0_is_using_private_name_1: {code: 4000,category: DiagnosticCategory.Error,key: "Import declaration '{0}' is using private name '{1}'."},
309
310
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}'."},
310
311
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}'."},
Copy file name to clipboardexpand all lines: tests/baselines/reference/inOperatorWithInvalidOperands.errors.txt
+16-16
Original file line number
Diff line number
Diff line change
@@ -1,10 +1,10 @@
1
-
tests/cases/conformance/expressions/binaryOperators/inOperator/inOperatorWithInvalidOperands.ts(12,11): error TS2360: The left-hand side of an 'in' expression must be of types 'any', 'string'or 'number'.
2
-
tests/cases/conformance/expressions/binaryOperators/inOperator/inOperatorWithInvalidOperands.ts(13,11): error TS2360: The left-hand side of an 'in' expression must be of types 'any', 'string'or 'number'.
3
-
tests/cases/conformance/expressions/binaryOperators/inOperator/inOperatorWithInvalidOperands.ts(14,11): error TS2360: The left-hand side of an 'in' expression must be of types 'any', 'string'or 'number'.
4
-
tests/cases/conformance/expressions/binaryOperators/inOperator/inOperatorWithInvalidOperands.ts(16,11): error TS2360: The left-hand side of an 'in' expression must be of types 'any', 'string'or 'number'.
5
-
tests/cases/conformance/expressions/binaryOperators/inOperator/inOperatorWithInvalidOperands.ts(17,11): error TS2360: The left-hand side of an 'in' expression must be of types 'any', 'string'or 'number'.
6
-
tests/cases/conformance/expressions/binaryOperators/inOperator/inOperatorWithInvalidOperands.ts(19,11): error TS2360: The left-hand side of an 'in' expression must be of types 'any', 'string'or 'number'.
7
-
tests/cases/conformance/expressions/binaryOperators/inOperator/inOperatorWithInvalidOperands.ts(20,11): error TS2360: The left-hand side of an 'in' expression must be of types 'any', 'string'or 'number'.
1
+
tests/cases/conformance/expressions/binaryOperators/inOperator/inOperatorWithInvalidOperands.ts(12,11): error TS2360: The left-hand side of an 'in' expression must be of type 'any', 'string', 'number', or 'symbol'.
2
+
tests/cases/conformance/expressions/binaryOperators/inOperator/inOperatorWithInvalidOperands.ts(13,11): error TS2360: The left-hand side of an 'in' expression must be of type 'any', 'string', 'number', or 'symbol'.
3
+
tests/cases/conformance/expressions/binaryOperators/inOperator/inOperatorWithInvalidOperands.ts(14,11): error TS2360: The left-hand side of an 'in' expression must be of type 'any', 'string', 'number', or 'symbol'.
4
+
tests/cases/conformance/expressions/binaryOperators/inOperator/inOperatorWithInvalidOperands.ts(16,11): error TS2360: The left-hand side of an 'in' expression must be of type 'any', 'string', 'number', or 'symbol'.
5
+
tests/cases/conformance/expressions/binaryOperators/inOperator/inOperatorWithInvalidOperands.ts(17,11): error TS2360: The left-hand side of an 'in' expression must be of type 'any', 'string', 'number', or 'symbol'.
6
+
tests/cases/conformance/expressions/binaryOperators/inOperator/inOperatorWithInvalidOperands.ts(19,11): error TS2360: The left-hand side of an 'in' expression must be of type 'any', 'string', 'number', or 'symbol'.
7
+
tests/cases/conformance/expressions/binaryOperators/inOperator/inOperatorWithInvalidOperands.ts(20,11): error TS2360: The left-hand side of an 'in' expression must be of type 'any', 'string', 'number', or 'symbol'.
8
8
tests/cases/conformance/expressions/binaryOperators/inOperator/inOperatorWithInvalidOperands.ts(30,16): error TS2361: The right-hand side of an 'in' expression must be of type 'any', an object type or a type parameter
9
9
tests/cases/conformance/expressions/binaryOperators/inOperator/inOperatorWithInvalidOperands.ts(31,16): error TS2361: The right-hand side of an 'in' expression must be of type 'any', an object type or a type parameter
10
10
tests/cases/conformance/expressions/binaryOperators/inOperator/inOperatorWithInvalidOperands.ts(32,16): error TS2361: The right-hand side of an 'in' expression must be of type 'any', an object type or a type parameter
tests/cases/conformance/expressions/binaryOperators/inOperator/inOperatorWithInvalidOperands.ts(37,16): error TS2361: The right-hand side of an 'in' expression must be of type 'any', an object type or a type parameter
16
16
tests/cases/conformance/expressions/binaryOperators/inOperator/inOperatorWithInvalidOperands.ts(38,16): error TS2361: The right-hand side of an 'in' expression must be of type 'any', an object type or a type parameter
17
17
tests/cases/conformance/expressions/binaryOperators/inOperator/inOperatorWithInvalidOperands.ts(39,17): error TS2361: The right-hand side of an 'in' expression must be of type 'any', an object type or a type parameter
18
-
tests/cases/conformance/expressions/binaryOperators/inOperator/inOperatorWithInvalidOperands.ts(43,11): error TS2360: The left-hand side of an 'in' expression must be of types 'any', 'string'or 'number'.
18
+
tests/cases/conformance/expressions/binaryOperators/inOperator/inOperatorWithInvalidOperands.ts(43,11): error TS2360: The left-hand side of an 'in' expression must be of type 'any', 'string', 'number', or 'symbol'.
19
19
tests/cases/conformance/expressions/binaryOperators/inOperator/inOperatorWithInvalidOperands.ts(43,17): error TS2361: The right-hand side of an 'in' expression must be of type 'any', an object type or a type parameter
tests/cases/conformance/es6/Symbols/symbolProperty54.ts(2,5): error TS2464: A computed property name must be of type 'string', 'number', 'symbol', or 'any'.
0 commit comments