summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--script/core/diagnostics/close-non-object.lua1
1 files changed, 1 insertions, 0 deletions
diff --git a/script/core/diagnostics/close-non-object.lua b/script/core/diagnostics/close-non-object.lua
index fa587823..c97014fa 100644
--- a/script/core/diagnostics/close-non-object.lua
+++ b/script/core/diagnostics/close-non-object.lua
@@ -27,6 +27,7 @@ return function (uri, callback)
local infer = vm.getInfer(source.value)
if not infer:hasClass()
and not infer:hasType 'nil'
+ and not infer:hasType 'table'
and infer:view('any', uri) ~= 'any' then
callback {
start = source.value.start,