diff options
-rw-r--r-- | server/src/matcher/vm.lua | 2 | ||||
-rw-r--r-- | server/test/definition/arg.lua | 6 | ||||
-rw-r--r-- | server/test/definition/function.lua | 2 |
3 files changed, 2 insertions, 8 deletions
diff --git a/server/src/matcher/vm.lua b/server/src/matcher/vm.lua index 38e64f5e..32dbc7a9 100644 --- a/server/src/matcher/vm.lua +++ b/server/src/matcher/vm.lua @@ -145,7 +145,7 @@ function mt:createFunction(exp, object) self.chunk:cut 'labels' local stop - self:forList(exp.args, function (arg) + self:forList(exp.arg, function (arg) if stop then return end diff --git a/server/test/definition/arg.lua b/server/test/definition/arg.lua index 9dc91f2d..3d92da9a 100644 --- a/server/test/definition/arg.lua +++ b/server/test/definition/arg.lua @@ -5,12 +5,6 @@ end ]] TEST [[ -local function x (x, <!...!>) - x = <?...?> -end -]] - -TEST [[ local <!mt!> function mt:x() <?self?>() diff --git a/server/test/definition/function.lua b/server/test/definition/function.lua index 5deda51c..aae5786f 100644 --- a/server/test/definition/function.lua +++ b/server/test/definition/function.lua @@ -3,7 +3,7 @@ TEST [[ function <!x!> () end <?x?>() ]] - + TEST [[ local function <!x!> () end <?x?>() |