Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 262f122

Browse filesBrowse files
committed
Adding "." to error message
1 parent 273b9ff commit 262f122
Copy full SHA for 262f122

11 files changed

+66-66Lines changed: 66 additions & 66 deletions
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎src/compiler/diagnosticInformationMap.generated.ts‎

Copy file name to clipboardExpand all lines: src/compiler/diagnosticInformationMap.generated.ts
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -415,7 +415,7 @@ namespace ts {
415415
The_arguments_object_cannot_be_referenced_in_an_async_arrow_function_Consider_using_a_standard_async_function_expression: { code: 2522, category: DiagnosticCategory.Error, key: "The 'arguments' object cannot be referenced in an async arrow function. Consider using a standard async function expression." },
416416
yield_expressions_cannot_be_used_in_a_parameter_initializer: { code: 2523, category: DiagnosticCategory.Error, key: "'yield' expressions cannot be used in a parameter initializer." },
417417
await_expressions_cannot_be_used_in_a_parameter_initializer: { code: 2524, category: DiagnosticCategory.Error, key: "'await' expressions cannot be used in a parameter initializer." },
418-
Initializer_provides_no_value_for_this_binding_element_and_the_binding_element_has_no_default_value: { code: 2525, category: DiagnosticCategory.Error, key: "Initializer provides no value for this binding element and the binding element has no default value" },
418+
Initializer_provides_no_value_for_this_binding_element_and_the_binding_element_has_no_default_value: { code: 2525, category: DiagnosticCategory.Error, key: "Initializer provides no value for this binding element and the binding element has no default value." },
419419
JSX_element_attributes_type_0_must_be_an_object_type: { code: 2600, category: DiagnosticCategory.Error, key: "JSX element attributes type '{0}' must be an object type." },
420420
The_return_type_of_a_JSX_element_constructor_must_return_an_object_type: { code: 2601, category: DiagnosticCategory.Error, key: "The return type of a JSX element constructor must return an object type." },
421421
JSX_element_implicitly_has_type_any_because_the_global_type_JSX_Element_does_not_exist: { code: 2602, category: DiagnosticCategory.Error, key: "JSX element implicitly has type 'any' because the global type 'JSX.Element' does not exist." },
Collapse file

‎src/compiler/diagnosticMessages.json‎

Copy file name to clipboardExpand all lines: src/compiler/diagnosticMessages.json
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1649,7 +1649,7 @@
16491649
"category": "Error",
16501650
"code": 2524
16511651
},
1652-
"Initializer provides no value for this binding element and the binding element has no default value": {
1652+
"Initializer provides no value for this binding element and the binding element has no default value.": {
16531653
"category": "Error",
16541654
"code": 2525
16551655
},
Collapse file

‎tests/baselines/reference/declarationEmitDestructuringArrayPattern2.errors.txt‎

Copy file name to clipboardExpand all lines: tests/baselines/reference/declarationEmitDestructuringArrayPattern2.errors.txt
+6-6Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
tests/cases/compiler/declarationEmitDestructuringArrayPattern2.ts(4,6): error TS2525: Initializer provides no value for this binding element and the binding element has no default value
2-
tests/cases/compiler/declarationEmitDestructuringArrayPattern2.ts(4,11): error TS2525: Initializer provides no value for this binding element and the binding element has no default value
3-
tests/cases/compiler/declarationEmitDestructuringArrayPattern2.ts(4,16): error TS2525: Initializer provides no value for this binding element and the binding element has no default value
1+
tests/cases/compiler/declarationEmitDestructuringArrayPattern2.ts(4,6): error TS2525: Initializer provides no value for this binding element and the binding element has no default value.
2+
tests/cases/compiler/declarationEmitDestructuringArrayPattern2.ts(4,11): error TS2525: Initializer provides no value for this binding element and the binding element has no default value.
3+
tests/cases/compiler/declarationEmitDestructuringArrayPattern2.ts(4,16): error TS2525: Initializer provides no value for this binding element and the binding element has no default value.
44

55

66
==== tests/cases/compiler/declarationEmitDestructuringArrayPattern2.ts (3 errors) ====
@@ -9,11 +9,11 @@ tests/cases/compiler/declarationEmitDestructuringArrayPattern2.ts(4,16): error T
99
var [x11 = 0, y11 = ""] = [1, "hello"];
1010
var [a11, b11, c11] = [];
1111
~~~
12-
!!! error TS2525: Initializer provides no value for this binding element and the binding element has no default value
12+
!!! error TS2525: Initializer provides no value for this binding element and the binding element has no default value.
1313
~~~
14-
!!! error TS2525: Initializer provides no value for this binding element and the binding element has no default value
14+
!!! error TS2525: Initializer provides no value for this binding element and the binding element has no default value.
1515
~~~
16-
!!! error TS2525: Initializer provides no value for this binding element and the binding element has no default value
16+
!!! error TS2525: Initializer provides no value for this binding element and the binding element has no default value.
1717

1818
var [a2, [b2, { x12, y12: c2 }]=["abc", { x12: 10, y12: false }]] = [1, ["hello", { x12: 5, y12: true }]];
1919

Collapse file

‎tests/baselines/reference/declarationsAndAssignments.errors.txt‎

Copy file name to clipboardExpand all lines: tests/baselines/reference/declarationsAndAssignments.errors.txt
+16-16Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,20 @@
1-
tests/cases/conformance/es6/destructuring/declarationsAndAssignments.ts(5,16): error TS2525: Initializer provides no value for this binding element and the binding element has no default value
1+
tests/cases/conformance/es6/destructuring/declarationsAndAssignments.ts(5,16): error TS2525: Initializer provides no value for this binding element and the binding element has no default value.
22
tests/cases/conformance/es6/destructuring/declarationsAndAssignments.ts(22,17): error TS2353: Object literal may only specify known properties, and 'x' does not exist in type '{}'.
33
tests/cases/conformance/es6/destructuring/declarationsAndAssignments.ts(22,23): error TS2353: Object literal may only specify known properties, and 'y' does not exist in type '{}'.
44
tests/cases/conformance/es6/destructuring/declarationsAndAssignments.ts(23,25): error TS2353: Object literal may only specify known properties, and 'y' does not exist in type '{ x: any; }'.
55
tests/cases/conformance/es6/destructuring/declarationsAndAssignments.ts(24,19): error TS2353: Object literal may only specify known properties, and 'x' does not exist in type '{ y: any; }'.
66
tests/cases/conformance/es6/destructuring/declarationsAndAssignments.ts(28,28): error TS2353: Object literal may only specify known properties, and 'y' does not exist in type '{ x: any; }'.
77
tests/cases/conformance/es6/destructuring/declarationsAndAssignments.ts(29,22): error TS2353: Object literal may only specify known properties, and 'x' does not exist in type '{ y: any; }'.
88
tests/cases/conformance/es6/destructuring/declarationsAndAssignments.ts(56,17): error TS2322: Type 'number' is not assignable to type 'string'.
9-
tests/cases/conformance/es6/destructuring/declarationsAndAssignments.ts(62,10): error TS2525: Initializer provides no value for this binding element and the binding element has no default value
10-
tests/cases/conformance/es6/destructuring/declarationsAndAssignments.ts(62,13): error TS2525: Initializer provides no value for this binding element and the binding element has no default value
11-
tests/cases/conformance/es6/destructuring/declarationsAndAssignments.ts(62,16): error TS2525: Initializer provides no value for this binding element and the binding element has no default value
12-
tests/cases/conformance/es6/destructuring/declarationsAndAssignments.ts(63,13): error TS2525: Initializer provides no value for this binding element and the binding element has no default value
13-
tests/cases/conformance/es6/destructuring/declarationsAndAssignments.ts(63,16): error TS2525: Initializer provides no value for this binding element and the binding element has no default value
9+
tests/cases/conformance/es6/destructuring/declarationsAndAssignments.ts(62,10): error TS2525: Initializer provides no value for this binding element and the binding element has no default value.
10+
tests/cases/conformance/es6/destructuring/declarationsAndAssignments.ts(62,13): error TS2525: Initializer provides no value for this binding element and the binding element has no default value.
11+
tests/cases/conformance/es6/destructuring/declarationsAndAssignments.ts(62,16): error TS2525: Initializer provides no value for this binding element and the binding element has no default value.
12+
tests/cases/conformance/es6/destructuring/declarationsAndAssignments.ts(63,13): error TS2525: Initializer provides no value for this binding element and the binding element has no default value.
13+
tests/cases/conformance/es6/destructuring/declarationsAndAssignments.ts(63,16): error TS2525: Initializer provides no value for this binding element and the binding element has no default value.
1414
tests/cases/conformance/es6/destructuring/declarationsAndAssignments.ts(67,9): error TS2461: Type '{ [x: number]: undefined; }' is not an array type.
1515
tests/cases/conformance/es6/destructuring/declarationsAndAssignments.ts(68,9): error TS2461: Type '{ [x: number]: number; 0: number; 1: number; }' is not an array type.
16-
tests/cases/conformance/es6/destructuring/declarationsAndAssignments.ts(73,11): error TS2525: Initializer provides no value for this binding element and the binding element has no default value
17-
tests/cases/conformance/es6/destructuring/declarationsAndAssignments.ts(73,14): error TS2525: Initializer provides no value for this binding element and the binding element has no default value
16+
tests/cases/conformance/es6/destructuring/declarationsAndAssignments.ts(73,11): error TS2525: Initializer provides no value for this binding element and the binding element has no default value.
17+
tests/cases/conformance/es6/destructuring/declarationsAndAssignments.ts(73,14): error TS2525: Initializer provides no value for this binding element and the binding element has no default value.
1818
tests/cases/conformance/es6/destructuring/declarationsAndAssignments.ts(74,11): error TS2459: Type 'undefined[]' has no property 'a' and no string index signature.
1919
tests/cases/conformance/es6/destructuring/declarationsAndAssignments.ts(74,14): error TS2459: Type 'undefined[]' has no property 'b' and no string index signature.
2020
tests/cases/conformance/es6/destructuring/declarationsAndAssignments.ts(106,5): error TS2345: Argument of type '[number, [string, { y: boolean; }]]' is not assignable to parameter of type '[number, [string, { x: any; y?: boolean; }]]'.
@@ -34,7 +34,7 @@ tests/cases/conformance/es6/destructuring/declarationsAndAssignments.ts(138,9):
3434
var [x, y] = [1, "hello"];
3535
var [x, y, z] = [1, "hello"];
3636
~
37-
!!! error TS2525: Initializer provides no value for this binding element and the binding element has no default value
37+
!!! error TS2525: Initializer provides no value for this binding element and the binding element has no default value.
3838
var [,, x] = [0, 1, 2];
3939
var x: number;
4040
var y: string;
@@ -107,16 +107,16 @@ tests/cases/conformance/es6/destructuring/declarationsAndAssignments.ts(138,9):
107107
function f8() {
108108
var [a, b, c] = []; // Ok, [] is an array
109109
~
110-
!!! error TS2525: Initializer provides no value for this binding element and the binding element has no default value
110+
!!! error TS2525: Initializer provides no value for this binding element and the binding element has no default value.
111111
~
112-
!!! error TS2525: Initializer provides no value for this binding element and the binding element has no default value
112+
!!! error TS2525: Initializer provides no value for this binding element and the binding element has no default value.
113113
~
114-
!!! error TS2525: Initializer provides no value for this binding element and the binding element has no default value
114+
!!! error TS2525: Initializer provides no value for this binding element and the binding element has no default value.
115115
var [d, e, f] = [1]; // Error, [1] is a tuple
116116
~
117-
!!! error TS2525: Initializer provides no value for this binding element and the binding element has no default value
117+
!!! error TS2525: Initializer provides no value for this binding element and the binding element has no default value.
118118
~
119-
!!! error TS2525: Initializer provides no value for this binding element and the binding element has no default value
119+
!!! error TS2525: Initializer provides no value for this binding element and the binding element has no default value.
120120
}
121121

122122
function f9() {
@@ -132,9 +132,9 @@ tests/cases/conformance/es6/destructuring/declarationsAndAssignments.ts(138,9):
132132
function f10() {
133133
var { a, b } = {}; // Error
134134
~
135-
!!! error TS2525: Initializer provides no value for this binding element and the binding element has no default value
135+
!!! error TS2525: Initializer provides no value for this binding element and the binding element has no default value.
136136
~
137-
!!! error TS2525: Initializer provides no value for this binding element and the binding element has no default value
137+
!!! error TS2525: Initializer provides no value for this binding element and the binding element has no default value.
138138
var { a, b } = []; // Error
139139
~
140140
!!! error TS2459: Type 'undefined[]' has no property 'a' and no string index signature.
Collapse file

‎tests/baselines/reference/destructuringArrayBindingPatternAndAssignment1ES5.errors.txt‎

Copy file name to clipboardExpand all lines: tests/baselines/reference/destructuringArrayBindingPatternAndAssignment1ES5.errors.txt
+6-6Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
tests/cases/conformance/es6/destructuring/destructuringArrayBindingPatternAndAssignment1ES5.ts(43,6): error TS2525: Initializer provides no value for this binding element and the binding element has no default value
2-
tests/cases/conformance/es6/destructuring/destructuringArrayBindingPatternAndAssignment1ES5.ts(44,8): error TS2525: Initializer provides no value for this binding element and the binding element has no default value
3-
tests/cases/conformance/es6/destructuring/destructuringArrayBindingPatternAndAssignment1ES5.ts(44,18): error TS2525: Initializer provides no value for this binding element and the binding element has no default value
1+
tests/cases/conformance/es6/destructuring/destructuringArrayBindingPatternAndAssignment1ES5.ts(43,6): error TS2525: Initializer provides no value for this binding element and the binding element has no default value.
2+
tests/cases/conformance/es6/destructuring/destructuringArrayBindingPatternAndAssignment1ES5.ts(44,8): error TS2525: Initializer provides no value for this binding element and the binding element has no default value.
3+
tests/cases/conformance/es6/destructuring/destructuringArrayBindingPatternAndAssignment1ES5.ts(44,18): error TS2525: Initializer provides no value for this binding element and the binding element has no default value.
44

55

66
==== tests/cases/conformance/es6/destructuring/destructuringArrayBindingPatternAndAssignment1ES5.ts (3 errors) ====
@@ -48,12 +48,12 @@ tests/cases/conformance/es6/destructuring/destructuringArrayBindingPatternAndAss
4848
var [c0, c1] = [...temp];
4949
var [c2] = [];
5050
~~
51-
!!! error TS2525: Initializer provides no value for this binding element and the binding element has no default value
51+
!!! error TS2525: Initializer provides no value for this binding element and the binding element has no default value.
5252
var [[[c3]], [[[[c4]]]]] = [[[]], [[[[]]]]]
5353
~~
54-
!!! error TS2525: Initializer provides no value for this binding element and the binding element has no default value
54+
!!! error TS2525: Initializer provides no value for this binding element and the binding element has no default value.
5555
~~
56-
!!! error TS2525: Initializer provides no value for this binding element and the binding element has no default value
56+
!!! error TS2525: Initializer provides no value for this binding element and the binding element has no default value.
5757
var [[c5], c6]: [[string|number], boolean] = [[1], true];
5858
var [, c7] = [1, 2, 3];
5959
var [,,, c8] = [1, 2, 3, 4];
Collapse file

‎tests/baselines/reference/destructuringArrayBindingPatternAndAssignment1ES6.errors.txt‎

Copy file name to clipboardExpand all lines: tests/baselines/reference/destructuringArrayBindingPatternAndAssignment1ES6.errors.txt
+6-6Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
tests/cases/conformance/es6/destructuring/destructuringArrayBindingPatternAndAssignment1ES6.ts(44,6): error TS2525: Initializer provides no value for this binding element and the binding element has no default value
2-
tests/cases/conformance/es6/destructuring/destructuringArrayBindingPatternAndAssignment1ES6.ts(45,8): error TS2525: Initializer provides no value for this binding element and the binding element has no default value
3-
tests/cases/conformance/es6/destructuring/destructuringArrayBindingPatternAndAssignment1ES6.ts(45,18): error TS2525: Initializer provides no value for this binding element and the binding element has no default value
1+
tests/cases/conformance/es6/destructuring/destructuringArrayBindingPatternAndAssignment1ES6.ts(44,6): error TS2525: Initializer provides no value for this binding element and the binding element has no default value.
2+
tests/cases/conformance/es6/destructuring/destructuringArrayBindingPatternAndAssignment1ES6.ts(45,8): error TS2525: Initializer provides no value for this binding element and the binding element has no default value.
3+
tests/cases/conformance/es6/destructuring/destructuringArrayBindingPatternAndAssignment1ES6.ts(45,18): error TS2525: Initializer provides no value for this binding element and the binding element has no default value.
44

55

66
==== tests/cases/conformance/es6/destructuring/destructuringArrayBindingPatternAndAssignment1ES6.ts (3 errors) ====
@@ -49,12 +49,12 @@ tests/cases/conformance/es6/destructuring/destructuringArrayBindingPatternAndAss
4949
var [c0, c1] = [...temp];
5050
var [c2] = [];
5151
~~
52-
!!! error TS2525: Initializer provides no value for this binding element and the binding element has no default value
52+
!!! error TS2525: Initializer provides no value for this binding element and the binding element has no default value.
5353
var [[[c3]], [[[[c4]]]]] = [[[]], [[[[]]]]]
5454
~~
55-
!!! error TS2525: Initializer provides no value for this binding element and the binding element has no default value
55+
!!! error TS2525: Initializer provides no value for this binding element and the binding element has no default value.
5656
~~
57-
!!! error TS2525: Initializer provides no value for this binding element and the binding element has no default value
57+
!!! error TS2525: Initializer provides no value for this binding element and the binding element has no default value.
5858
var [[c5], c6]: [[string|number], boolean] = [[1], true];
5959
var [, c7] = [1, 2, 3];
6060
var [,,, c8] = [1, 2, 3, 4];
Collapse file

‎tests/baselines/reference/destructuringArrayBindingPatternAndAssignment2.errors.txt‎

Copy file name to clipboardExpand all lines: tests/baselines/reference/destructuringArrayBindingPatternAndAssignment2.errors.txt
+4-4Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
tests/cases/conformance/es6/destructuring/destructuringArrayBindingPatternAndAssignment2.ts(3,6): error TS2525: Initializer provides no value for this binding element and the binding element has no default value
2-
tests/cases/conformance/es6/destructuring/destructuringArrayBindingPatternAndAssignment2.ts(3,12): error TS2525: Initializer provides no value for this binding element and the binding element has no default value
1+
tests/cases/conformance/es6/destructuring/destructuringArrayBindingPatternAndAssignment2.ts(3,6): error TS2525: Initializer provides no value for this binding element and the binding element has no default value.
2+
tests/cases/conformance/es6/destructuring/destructuringArrayBindingPatternAndAssignment2.ts(3,12): error TS2525: Initializer provides no value for this binding element and the binding element has no default value.
33
tests/cases/conformance/es6/destructuring/destructuringArrayBindingPatternAndAssignment2.ts(4,5): error TS2461: Type 'undefined' is not an array type.
44
tests/cases/conformance/es6/destructuring/destructuringArrayBindingPatternAndAssignment2.ts(9,5): error TS2322: Type '[number, number, string]' is not assignable to type '[number, boolean, string]'.
55
Types of property '1' are incompatible.
@@ -18,9 +18,9 @@ tests/cases/conformance/es6/destructuring/destructuringArrayBindingPatternAndAss
1818
// S is the type Any, or
1919
var [[a0], [[a1]]] = [] // Error
2020
~~~~
21-
!!! error TS2525: Initializer provides no value for this binding element and the binding element has no default value
21+
!!! error TS2525: Initializer provides no value for this binding element and the binding element has no default value.
2222
~~~~~~
23-
!!! error TS2525: Initializer provides no value for this binding element and the binding element has no default value
23+
!!! error TS2525: Initializer provides no value for this binding element and the binding element has no default value.
2424
var [[a2], [[a3]]] = undefined // Error
2525
~~~~~~~~~~~~~~
2626
!!! error TS2461: Type 'undefined' is not an array type.

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.