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
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -189,7 +189,7 @@ module ts {
189
189
Property_0_does_not_exist_on_type_1: {code: 2339,category: DiagnosticCategory.Error,key: "Property '{0}' does not exist on type '{1}'."},
190
190
Only_public_and_protected_methods_of_the_base_class_are_accessible_via_the_super_keyword: {code: 2340,category: DiagnosticCategory.Error,key: "Only public and protected methods of the base class are accessible via the 'super' keyword"},
191
191
Property_0_is_private_and_only_accessible_within_class_1: {code: 2341,category: DiagnosticCategory.Error,key: "Property '{0}' is private and only accessible within class '{1}'."},
192
-
An_index_expression_argument_must_be_of_type_string_number_or_any: {code: 2342,category: DiagnosticCategory.Error,key: "An index expression argument must be of type 'string', 'number', or 'any'."},
192
+
An_index_expression_argument_must_be_of_type_string_number_symbol_or_any: {code: 2342,category: DiagnosticCategory.Error,key: "An index expression argument must be of type 'string', 'number', 'symbol, or 'any'."},
193
193
Type_0_does_not_satisfy_the_constraint_1: {code: 2344,category: DiagnosticCategory.Error,key: "Type '{0}' does not satisfy the constraint '{1}'."},
194
194
Argument_of_type_0_is_not_assignable_to_parameter_of_type_1: {code: 2345,category: DiagnosticCategory.Error,key: "Argument of type '{0}' is not assignable to parameter of type '{1}'."},
195
195
Supplied_parameters_do_not_match_any_signature_of_call_target: {code: 2346,category: DiagnosticCategory.Error,key: "Supplied parameters do not match any signature of call target."},
Copy file name to clipboardExpand all lines: tests/baselines/reference/objectCreationOfElementAccessExpression.errors.txt
+4-4Lines changed: 4 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -1,6 +1,6 @@
1
-
tests/cases/compiler/objectCreationOfElementAccessExpression.ts(53,17): error TS2342: An index expression argument must be of type 'string', 'number', or 'any'.
1
+
tests/cases/compiler/objectCreationOfElementAccessExpression.ts(53,17): error TS2342: An index expression argument must be of type 'string', 'number', 'symbol, or 'any'.
2
2
tests/cases/compiler/objectCreationOfElementAccessExpression.ts(53,63): error TS2348: Value of type 'typeof Cookie' is not callable. Did you mean to include 'new'?
3
-
tests/cases/compiler/objectCreationOfElementAccessExpression.ts(54,33): error TS2342: An index expression argument must be of type 'string', 'number', or 'any'.
3
+
tests/cases/compiler/objectCreationOfElementAccessExpression.ts(54,33): error TS2342: An index expression argument must be of type 'string', 'number', 'symbol, or 'any'.
4
4
tests/cases/compiler/objectCreationOfElementAccessExpression.ts(54,79): error TS2348: Value of type 'typeof Cookie' is not callable. Did you mean to include 'new'?
Copy file name to clipboardExpand all lines: tests/baselines/reference/propertyAccess.errors.txt
+6-6Lines changed: 6 additions & 6 deletions
Original file line number
Diff line number
Diff line change
@@ -1,7 +1,7 @@
1
1
tests/cases/conformance/expressions/propertyAccess/propertyAccess.ts(45,14): error TS2339: Property 'qqq' does not exist on type '{ 10: string; x: string; y: number; z: { n: string; m: number; o: () => boolean; }; 'literal property': number; }'.
2
-
tests/cases/conformance/expressions/propertyAccess/propertyAccess.ts(80,10): error TS2342: An index expression argument must be of type 'string', 'number', or 'any'.
3
-
tests/cases/conformance/expressions/propertyAccess/propertyAccess.ts(117,10): error TS2342: An index expression argument must be of type 'string', 'number', or 'any'.
4
-
tests/cases/conformance/expressions/propertyAccess/propertyAccess.ts(140,12): error TS2342: An index expression argument must be of type 'string', 'number', or 'any'.
2
+
tests/cases/conformance/expressions/propertyAccess/propertyAccess.ts(80,10): error TS2342: An index expression argument must be of type 'string', 'number', 'symbol, or 'any'.
3
+
tests/cases/conformance/expressions/propertyAccess/propertyAccess.ts(117,10): error TS2342: An index expression argument must be of type 'string', 'number', 'symbol, or 'any'.
4
+
tests/cases/conformance/expressions/propertyAccess/propertyAccess.ts(140,12): error TS2342: An index expression argument must be of type 'string', 'number', 'symbol, or 'any'.
@@ -88,7 +88,7 @@ tests/cases/conformance/expressions/propertyAccess/propertyAccess.ts(140,12): er
88
88
// Bracket notation property access using value of other type on type with numeric index signature and no string index signature
89
89
var ll = numIndex[someObject]; // Error
90
90
~~~~~~~~~~~~~~~~~~~~
91
-
!!! error TS2342: An index expression argument must be of type 'string', 'number', or 'any'.
91
+
!!! error TS2342: An index expression argument must be of type 'string', 'number', 'symbol, or 'any'.
92
92
93
93
// Bracket notation property access using string value on type with string index signature and no numeric index signature
94
94
var mm = strIndex['N'];
@@ -127,7 +127,7 @@ tests/cases/conformance/expressions/propertyAccess/propertyAccess.ts(140,12): er
127
127
// Bracket notation property access using values of other types on type with no index signatures
128
128
var uu = noIndex[someObject]; // Error
129
129
~~~~~~~~~~~~~~~~~~~
130
-
!!! error TS2342: An index expression argument must be of type 'string', 'number', or 'any'.
130
+
!!! error TS2342: An index expression argument must be of type 'string', 'number', 'symbol, or 'any'.
131
131
132
132
// Bracket notation property access using numeric value on type with numeric index signature and string index signature
133
133
var vv = noIndex[32];
@@ -152,7 +152,7 @@ tests/cases/conformance/expressions/propertyAccess/propertyAccess.ts(140,12): er
152
152
// Bracket notation property access using value of other type on type with numeric index signature and no string index signature and string index signature
153
153
var zzzz = bothIndex[someObject]; // Error
154
154
~~~~~~~~~~~~~~~~~~~~~
155
-
!!! error TS2342: An index expression argument must be of type 'string', 'number', or 'any'.
155
+
!!! error TS2342: An index expression argument must be of type 'string', 'number', 'symbol, or 'any'.
Copy file name to clipboardExpand all lines: tests/baselines/reference/symbolProperty53.errors.txt
+2-2Lines changed: 2 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -1,5 +1,5 @@
1
1
tests/cases/conformance/es6/Symbols/symbolProperty53.ts(2,5): error TS2464: A computed property name must be of type 'string', 'number', 'symbol', or 'any'.
2
-
tests/cases/conformance/es6/Symbols/symbolProperty53.ts(5,1): error TS2342: An index expression argument must be of type 'string', 'number', or 'any'.
2
+
tests/cases/conformance/es6/Symbols/symbolProperty53.ts(5,1): error TS2342: An index expression argument must be of type 'string', 'number', 'symbol, or 'any'.
0 commit comments