diff options
author | 最萌小汐 <sumneko@hotmail.com> | 2020-12-04 12:48:03 +0800 |
---|---|---|
committer | 最萌小汐 <sumneko@hotmail.com> | 2020-12-04 12:48:03 +0800 |
commit | 923fcd8fe3e5ce1f140446482394eb2eb7261d8d (patch) | |
tree | 0a1e46420078f5b6a955542c9c19bac0044f0e92 /test/hover | |
parent | e44b3de412d136bc14a5b43740297cd3aa4a67b9 (diff) | |
download | lua-language-server-923fcd8fe3e5ce1f140446482394eb2eb7261d8d.zip |
fix #274
Diffstat (limited to 'test/hover')
-rw-r--r-- | test/hover/init.lua | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/test/hover/init.lua b/test/hover/init.lua index ed16595a..cc2fcea8 100644 --- a/test/hover/init.lua +++ b/test/hover/init.lua @@ -1459,3 +1459,20 @@ local v: Object { a: string, } ]] + +TEST [[ +---@class Object +---@field a string + +---@type Object[] +local t + +local <?v?> = t[i] + +print(v.a) +]] +[[ +local v: Object { + a: string, +} +]] |