summaryrefslogtreecommitdiff
path: root/script/core/diagnostics/not-yieldable.lua
diff options
context:
space:
mode:
Diffstat (limited to 'script/core/diagnostics/not-yieldable.lua')
-rw-r--r--script/core/diagnostics/not-yieldable.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/script/core/diagnostics/not-yieldable.lua b/script/core/diagnostics/not-yieldable.lua
index 706c83e0..0588bbde 100644
--- a/script/core/diagnostics/not-yieldable.lua
+++ b/script/core/diagnostics/not-yieldable.lua
@@ -12,7 +12,7 @@ local function isYieldAble(defs, i)
local arg = def.args and def.args[i]
if arg then
hasFuncDef = true
- if infer.hasType(arg, 'any')
+ if infer.getInfer(arg):hasType 'any'
or vm.isAsync(arg, true)
or arg.type == '...' then
return true
@@ -23,7 +23,7 @@ local function isYieldAble(defs, i)
local arg = def.args and def.args[i]
if arg then
hasFuncDef = true
- if infer.hasType(arg.extends, 'any')
+ if infer.getInfer(arg.extends):hasType 'any'
or vm.isAsync(arg.extends, true) then
return true
end