summaryrefslogtreecommitdiff
path: root/script/vm/infer.lua
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2022-04-07 02:58:03 +0800
committer最萌小汐 <sumneko@hotmail.com>2022-04-07 02:58:03 +0800
commit84441873f6b0e4a75ee9b9d96d88c5609c7a48dc (patch)
tree6f390e1e74cca7a0b0bb70a7680519af0fa43c04 /script/vm/infer.lua
parente9975c2081dfe2f42392a7612b2a3862e513e45e (diff)
downloadlua-language-server-84441873f6b0e4a75ee9b9d96d88c5609c7a48dc.zip
update
Diffstat (limited to 'script/vm/infer.lua')
-rw-r--r--script/vm/infer.lua3
1 files changed, 3 insertions, 0 deletions
diff --git a/script/vm/infer.lua b/script/vm/infer.lua
index e6ca14e2..853bd7de 100644
--- a/script/vm/infer.lua
+++ b/script/vm/infer.lua
@@ -81,6 +81,9 @@ local viewNodeSwitch = util.switch()
: call(function (source, infer)
if source.cate == 'type' then
infer._hasClass = true
+ if source.name == 'number' then
+ infer._hasNumber = true
+ end
return source.name
end
end)