summaryrefslogtreecommitdiff
path: root/script
diff options
context:
space:
mode:
Diffstat (limited to 'script')
-rw-r--r--script/core/infer.lua4
1 files changed, 3 insertions, 1 deletions
diff --git a/script/core/infer.lua b/script/core/infer.lua
index aa1e1f28..c4af5122 100644
--- a/script/core/infer.lua
+++ b/script/core/infer.lua
@@ -244,7 +244,9 @@ local function cleanInfers(infers)
-- 如果是通过 # 来推测的,且结果里没有其他的 table 与 string,则加入这2个类型
if infers[STRING_OR_TABLE] then
infers[STRING_OR_TABLE] = nil
- if not infers['table'] and not infers['string'] then
+ if not infers['table']
+ and not infers['string']
+ and not infers[CLASS] then
infers['table'] = true
infers['string'] = true
end