summaryrefslogtreecommitdiff
path: root/script/vm/function.lua
diff options
context:
space:
mode:
Diffstat (limited to 'script/vm/function.lua')
-rw-r--r--script/vm/function.lua10
1 files changed, 8 insertions, 2 deletions
diff --git a/script/vm/function.lua b/script/vm/function.lua
index bdd7e229..c6df6349 100644
--- a/script/vm/function.lua
+++ b/script/vm/function.lua
@@ -372,8 +372,14 @@ function vm.isVarargFunctionWithOverloads(func)
if not func.args then
return false
end
- if not func.args[1] or func.args[1].type ~= '...' then
- return false
+ if func.args[1] and func.args[1].type == 'self' then
+ if not func.args[2] or func.args[2].type ~= '...' then
+ return false
+ end
+ else
+ if not func.args[1] or func.args[1].type ~= '...' then
+ return false
+ end
end
if not func.bindDocs then
return false