diff options
author | sumneko <sumneko@hotmail.com> | 2021-10-21 21:37:58 +0800 |
---|---|---|
committer | sumneko <sumneko@hotmail.com> | 2021-10-21 21:37:58 +0800 |
commit | 8b3e2f7597fb267f70362903d2fbe285edde03c1 (patch) | |
tree | 666f5a4034c9cddbfc1556ef3e7a9de269aa38ee /script/core | |
parent | 2f065aa49daf4f8116fe5ad1a2f991ce869b1f64 (diff) | |
download | lua-language-server-8b3e2f7597fb267f70362903d2fbe285edde03c1.zip |
fix
Diffstat (limited to 'script/core')
-rw-r--r-- | script/core/infer.lua | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/script/core/infer.lua b/script/core/infer.lua index 56ab2b5b..ab297209 100644 --- a/script/core/infer.lua +++ b/script/core/infer.lua @@ -583,7 +583,7 @@ function m.hasType(source, tp, mark) end if tp == 'function' then for infer in pairs(infers) do - if infer ~= 0 and infer:sub(1, 4) == 'fun(' then + if infer ~= CACHE and infer:sub(1, 4) == 'fun(' then return true end end |