Skip to content

Commit 29f8cfd

Browse files
committed
close-non-object excludes table
1 parent 1282381 commit 29f8cfd

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

script/core/diagnostics/close-non-object.lua

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ return function (uri, callback)
2727
local infer = vm.getInfer(source.value)
2828
if not infer:hasClass()
2929
and not infer:hasType 'nil'
30+
and not infer:hasType 'table'
3031
and infer:view('any', uri) ~= 'any' then
3132
callback {
3233
start = source.value.start,

0 commit comments

Comments
 (0)