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
+6
Original file line number
Diff line number
Diff line change
@@ -169,6 +169,12 @@ module ts {
169
169
Ambient_const_enums_are_not_allowed_when_the_separateCompilation_flag_is_provided: {code: 1209,category: DiagnosticCategory.Error,key: "Ambient const enums are not allowed when the '--separateCompilation' flag is provided."},
170
170
Invalid_use_of_0_Class_definitions_are_automatically_in_strict_mode: {code: 1210,category: DiagnosticCategory.Error,key: "Invalid use of '{0}'. Class definitions are automatically in strict mode."},
171
171
A_class_declaration_without_the_default_modifier_must_have_a_name: {code: 1211,category: DiagnosticCategory.Error,key: "A class declaration without the 'default' modifier must have a name"},
172
+
Identifier_expected_0_is_a_reserved_word_in_strict_mode: {code: 1212,category: DiagnosticCategory.Error,key: "Identifier expected. '{0}' is a reserved word in strict mode"},
173
+
Identifier_expected_0_is_a_reserved_word_in_strict_mode_Class_definitions_are_automatically_in_strict_mode: {code: 1213,category: DiagnosticCategory.Error,key: "Identifier expected. '{0}' is a reserved word in strict mode. Class definitions are automatically in strict mode."},
174
+
Identifier_expected_0_is_a_reserved_word_in_strict_mode_External_Module_is_automatically_in_strict_mode: {code: 1214,category: DiagnosticCategory.Error,key: "Identifier expected. '{0}' is a reserved word in strict mode. External Module is automatically in strict mode."},
175
+
Type_expected_0_is_a_reserved_word_in_strict_mode: {code: 1215,category: DiagnosticCategory.Error,key: "Type expected. '{0}' is a reserved word in strict mode"},
176
+
Type_expected_0_is_a_reserved_word_in_strict_mode_Class_definitions_are_automatically_in_strict_mode: {code: 1216,category: DiagnosticCategory.Error,key: "Type expected. '{0}' is a reserved word in strict mode. Class definitions are automatically in strict mode."},
177
+
Type_expected_0_is_a_reserved_word_in_strict_mode_Module_is_automatically_in_strict_mode: {code: 1217,category: DiagnosticCategory.Error,key: "Type expected. '{0}' is a reserved word in strict mode. Module is automatically in strict mode."},
Initializer_of_instance_member_variable_0_cannot_reference_identifier_1_declared_in_the_constructor: {code: 2301,category: DiagnosticCategory.Error,key: "Initializer of instance member variable '{0}' cannot reference identifier '{1}' declared in the constructor."},
174
180
Static_members_cannot_reference_class_type_parameters: {code: 2302,category: DiagnosticCategory.Error,key: "Static members cannot reference class type parameters."},
tests/cases/compiler/constructorStaticParamName.ts(4,18): error TS1213: Identifier expected. 'static' is a reserved word in strict mode. Class definitions are automatically in strict mode.
tests/cases/compiler/constructorStaticParamNameErrors.ts(4,18): error TS1213: Identifier expected. 'static' is a reserved word in strict mode. Class definitions are automatically in strict mode.
0 commit comments