diff options
Diffstat (limited to 'script')
-rw-r--r-- | script/core/infer.lua | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/script/core/infer.lua b/script/core/infer.lua index 7ad35643..f6ca6499 100644 --- a/script/core/infer.lua +++ b/script/core/infer.lua @@ -254,6 +254,12 @@ local function cleanInfers(infers) end end infers['any'] = nil + if infers['nil'] then + infers['nil'] = nil + if not next(infers) then + infers['nil'] = true + end + end end ---合并对象的推断类型 |