8000 Better err msg on consecutive numeric separators · harunurhan/TypeScript@db4a470 · GitHub
[go: up one dir, main page]

Skip to content

Commit db4a470

Browse files
committed
Better err msg on consecutive numeric separators
* Closes microsoft#20585
1 parent 9e51882 commit db4a470

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

src/compiler/diagnosticMessages.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3424,6 +3424,10 @@
34243424
"category": "Error",
34253425
"code": 6188
34263426
},
3427+
"Multiple consecutive numeric separators are not permitted.": {
3428+
"category": "Error",
3429+
"code": 6189
3430+
},
34273431
"Variable '{0}' implicitly has an '{1}' type.": {
34283432
"category": "Error",
34293433
"code": 7005

src/compiler/scanner.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -876,7 +876,7 @@ namespace ts {
876876
result += text.substring(start, pos);
877877
}
878878
else {
879-
error(Diagnostics.Numeric_separators_are_not_allowed_here, pos, 1);
879+
error(Diagnostics.Multiple_consecutive_numeric_separators_are_not_permitted, pos, 1);
880880
}
881881
pos++;
882882
start = pos;

0 commit comments

Comments
 (0)
0