From 2b75b7d79fa3175d45336da19ea71fcc709933e2 Mon Sep 17 00:00:00 2001 From: 0x4261756D <38735823+0x4261756D@users.noreply.github.com> Date: Wed, 21 Feb 2024 15:11:17 +0100 Subject: [PATCH] Add missing increment if parlist starts with varargs --- Parser.cs | 1 + 1 file changed, 1 insertion(+) diff --git a/Parser.cs b/Parser.cs index 0bbcf0c..133b6e1 100644 --- a/Parser.cs +++ b/Parser.cs @@ -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)