diff options
author | 最萌小汐 <sumneko@hotmail.com> | 2020-12-02 20:31:50 +0800 |
---|---|---|
committer | 最萌小汐 <sumneko@hotmail.com> | 2020-12-02 20:31:50 +0800 |
commit | 8f5946edf67ab5de910ac1955337f8588be24406 (patch) | |
tree | aa31cef9c47d726e4d622edc574fbee2f1fd0b74 /test | |
parent | 830be2cab0d5e45a32606bb33eba216c72a9ca66 (diff) | |
download | lua-language-server-8f5946edf67ab5de910ac1955337f8588be24406.zip |
getFieldFast check doc.field
Diffstat (limited to 'test')
-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 333234a6..ed16595a 100644 --- a/test/hover/init.lua +++ b/test/hover/init.lua @@ -1442,3 +1442,20 @@ local <?y?> [[ local y: any ]] + +TEST [[ +---@class Object +---@field a string + +---@type Object[] +local t + +local <?v?> = t[1] + +print(v.a) +]] +[[ +local v: Object { + a: string, +} +]] |