Fix error when parsing empty tuple
This commit is contained in:
parent
368d2243f1
commit
2dae494fc2
1 changed files with 1 additions and 0 deletions
|
@ -191,6 +191,7 @@ export class Parser {
|
||||||
for (;;) {
|
for (;;) {
|
||||||
const t2 = this.peekToken();
|
const t2 = this.peekToken();
|
||||||
if (t2.kind === SyntaxKind.RParen) {
|
if (t2.kind === SyntaxKind.RParen) {
|
||||||
|
this.getToken();
|
||||||
rparen = t2;
|
rparen = t2;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue