diff options
author | 最萌小汐 <sumneko@hotmail.com> | 2022-11-01 20:51:10 +0800 |
---|---|---|
committer | 最萌小汐 <sumneko@hotmail.com> | 2022-11-01 20:51:10 +0800 |
commit | 5e9e75b46fdacda1bb1479780af6a0132d7d17cb (patch) | |
tree | 0e13f27a73f67aad24b81e504dec9949cceb68c0 /test/hover | |
parent | 74e8cdc64719198018a565f438fa1ab66bfc71f5 (diff) | |
download | lua-language-server-5e9e75b46fdacda1bb1479780af6a0132d7d17cb.zip |
fix
Diffstat (limited to 'test/hover')
-rw-r--r-- | test/hover/init.lua | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/test/hover/init.lua b/test/hover/init.lua index 165f62c5..dad32f14 100644 --- a/test/hover/init.lua +++ b/test/hover/init.lua @@ -2380,3 +2380,16 @@ local obj: B { get: function, } ]] + +TEST [[ +---@class A +---@field x fun(): string + +---@type table<string, A> +local obj + +local x = obj[''].<?x?>() +]] +[[ +(field) A.x: fun():string +]] |