Handle trailing commas in types (#1272)

This commit is contained in:
Islon Scherer
2025-10-30 13:36:56 +01:00
committed by GitHub
parent 7df447924e
commit 9469dd885d
3 changed files with 4 additions and 3 deletions

View File

@@ -1170,7 +1170,8 @@ public class GenericParser {
ff(elements);
while (lookahead == Token.COMMA) {
var comma = next();
if (lookahead == Token.RPAREN) {
if (lookahead() == Token.RPAREN) {
ff(elements);
break;
}
elements.add(makeTerminal(comma));