diff options
Diffstat (limited to 'script/core/diagnostics/not-yieldable.lua')
-rw-r--r-- | script/core/diagnostics/not-yieldable.lua | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/script/core/diagnostics/not-yieldable.lua b/script/core/diagnostics/not-yieldable.lua index 612b5b98..465f6a8b 100644 --- a/script/core/diagnostics/not-yieldable.lua +++ b/script/core/diagnostics/not-yieldable.lua @@ -13,7 +13,8 @@ local function isYieldAble(defs, i) local arg = def.args and def.args[i] if arg then if infer.hasType(arg, 'any') - or vm.isAsync(arg, true) then + or vm.isAsync(arg, true) + or arg.type == '...' then return true end end |