summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--script/core/infer.lua6
1 files changed, 4 insertions, 2 deletions
diff --git a/script/core/infer.lua b/script/core/infer.lua
index ce546455..4bd8d40e 100644
--- a/script/core/infer.lua
+++ b/script/core/infer.lua
@@ -128,8 +128,10 @@ local function searchInferOfValue(value, infers, mark)
if value.type == 'table' then
if value.array then
local node = m.searchAndViewInfers(value.array, nil, mark)
- local infer = node .. '[]'
- infers[infer] = true
+ if node ~= 'any' then
+ local infer = node .. '[]'
+ infers[infer] = true
+ end
else
infers['table'] = true
end