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
+4
Original file line number
Diff line number
Diff line change
@@ -115,6 +115,10 @@ module ts {
115
115
Filename_0_differs_from_already_included_filename_1_only_in_casing: {code: 1149,category: DiagnosticCategory.Error,key: "Filename '{0}' differs from already included filename '{1}' only in casing"},
116
116
new_T_cannot_be_used_to_create_an_array_Use_new_Array_T_instead: {code: 1150,category: DiagnosticCategory.Error,key: "'new T[]' cannot be used to create an array. Use 'new Array<T>()' instead."},
117
117
An_enum_member_cannot_have_a_numeric_name: {code: 1151,category: DiagnosticCategory.Error,key: "An enum member cannot have a numeric name."},
118
+
var_let_or_const_expected: {code: 1152,category: DiagnosticCategory.Error,key: "'var', 'let' or 'const' expected."},
119
+
let_variable_declarations_are_only_available_when_targeting_ECMAScript_6_and_higher: {code: 1153,category: DiagnosticCategory.Error,key: "'let' variable declarations are only available when targeting ECMAScript 6 and higher."},
120
+
const_variable_declarations_are_only_available_when_targeting_ECMAScript_6_and_higher: {code: 1154,category: DiagnosticCategory.Error,key: "'const' variable declarations are only available when targeting ECMAScript 6 and higher."},
121
+
Const_must_be_intialized: {code: 1155,category: DiagnosticCategory.Error,key: "Const must be intialized."},
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."},
120
124
Static_members_cannot_reference_class_type_parameters: {code: 2302,category: DiagnosticCategory.Error,key: "Static members cannot reference class type parameters."},
tests/cases/compiler/constDeclarations-errors.ts(10,11): error TS2403: Subsequent variable declarations must have the same type. Variable 'c' must be of type 'any', but here has type 'number'.
tests/cases/compiler/constDeclarations-es5.ts(2,1): error TS1154: 'const' variable declarations are only available when targeting ECMAScript 6 and higher.
2
+
tests/cases/compiler/constDeclarations-es5.ts(3,1): error TS1154: 'const' variable declarations are only available when targeting ECMAScript 6 and higher.
3
+
tests/cases/compiler/constDeclarations-es5.ts(4,1): error TS1154: 'const' variable declarations are only available when targeting ECMAScript 6 and higher.
0 commit comments