diff options
author | 最萌小汐 <sumneko@hotmail.com> | 2022-06-17 17:26:29 +0800 |
---|---|---|
committer | 最萌小汐 <sumneko@hotmail.com> | 2022-06-17 17:26:29 +0800 |
commit | 09f1cf4e0380437087536ec0d79eddae44a0e569 (patch) | |
tree | 2afacd3a1a8e9a5b630dbabb0c4115be59a8c5a2 /script/vm/compiler.lua | |
parent | be5ef0ab55f4cfa25c1a8a72c4f9df3c3adae16b (diff) | |
download | lua-language-server-09f1cf4e0380437087536ec0d79eddae44a0e569.zip |
fix infer by `string[]`
Diffstat (limited to 'script/vm/compiler.lua')
-rw-r--r-- | script/vm/compiler.lua | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/script/vm/compiler.lua b/script/vm/compiler.lua index c7d57dcb..103239c1 100644 --- a/script/vm/compiler.lua +++ b/script/vm/compiler.lua @@ -78,8 +78,13 @@ local searchFieldSwitch = util.switch() or not math.tointeger(key) then return end + pushResult(source.node) + end + if type(key) == 'table' then + if vm.isSubType(suri, key, 'integer') then + pushResult(source.node) + end end - pushResult(source.node) end) : case 'doc.type.table' : call(function (suri, source, key, ref, pushResult) |