Add missing increment if parlist starts with varargs

This commit is contained in:
0x4261756D 2024-02-21 15:11:17 +01:00
parent ae4a3e9993
commit 2b75b7d79f

View File

@ -1359,6 +1359,7 @@ class Parser
CodeRegion startRegion = tokens[index].region;
if(tokens[index].type == TokenType.DotDotDot)
{
index += 1;
return new ParlistNode(names: [], hasVarargs: true, startRegion: startRegion, endRegion: startRegion);
}
if(tokens[index].type != TokenType.Name)