File tree Expand file tree Collapse file tree 2 files changed +1
-3
lines changed Expand file tree Collapse file tree 2 files changed +1
-3
lines changed Original file line number Diff line number Diff line change @@ -1614,7 +1614,7 @@ export class Tokenizer extends DiagnosticEmitter {
1614
1614
checkForIdentifierStartAfterNumericLiteral ( ) : void {
1615
1615
// TODO: BigInt n
1616
1616
var pos = this . pos ;
1617
- if ( pos + 1 < this . end && isIdentifierStart ( this . source . text . charCodeAt ( pos ) ) ) {
1617
+ if ( pos < this . end && isIdentifierStart ( this . source . text . charCodeAt ( pos ) ) ) {
1618
1618
this . error (
1619
1619
DiagnosticCode . An_identifier_or_keyword_cannot_immediately_follow_a_numeric_literal ,
1620
1620
this . range ( pos )
Original file line number Diff line number Diff line change 81
81
// ERROR 1109: "Expression expected." in literals.ts(68,3+1)
82
82
// ERROR 6188: "Numeric separators are not allowed here." in literals.ts(70,2+0)
83
83
// ERROR 1351: "An identifier or keyword cannot immediately follow a numeric literal." in literals.ts(71,3+0)
84
- // ERROR 1351: "An identifier or keyword cannot immediately follow a numeric literal." in literals.ts(71,3+0)
85
- // ERROR 1351: "An identifier or keyword cannot immediately follow a numeric literal." in literals.ts(72,4+0)
86
84
// ERROR 1351: "An identifier or keyword cannot immediately follow a numeric literal." in literals.ts(72,4+0)
You can’t perform that action at this time.
0 commit comments