diff options
author | 最萌小汐 <sumneko@hotmail.com> | 2021-07-14 16:49:48 +0800 |
---|---|---|
committer | 最萌小汐 <sumneko@hotmail.com> | 2021-07-14 16:49:48 +0800 |
commit | 4ddea4e9386ab0b0ec9583e6c468b52a0d7a8958 (patch) | |
tree | b58dc78883973aeea2e4ee5d113c441454497582 /test | |
parent | 113ddccfec2264eb0c500a396bb4bb7ec6729373 (diff) | |
download | lua-language-server-4ddea4e9386ab0b0ec9583e6c468b52a0d7a8958.zip |
fix infer of infer of `---@type {}[]`
Diffstat (limited to 'test')
-rw-r--r-- | test/type_inference/init.lua | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/test/type_inference/init.lua b/test/type_inference/init.lua index b5d4db16..a3a06bfd 100644 --- a/test/type_inference/init.lua +++ b/test/type_inference/init.lua @@ -894,3 +894,10 @@ TEST 'string[][]' [[ ---@type string[][] local <?t?> ]] + +TEST 'table' [[ +---@type {}[] +local t + +local <?v?> = t[1] +]] |