diff options
author | 最萌小汐 <sumneko@hotmail.com> | 2021-03-01 20:57:30 +0800 |
---|---|---|
committer | 最萌小汐 <sumneko@hotmail.com> | 2021-03-01 20:57:30 +0800 |
commit | 39e74b505b381cff35898051f96042f1c9109029 (patch) | |
tree | 33f63199da2de863112c89dd8c0647c391354afe /test/diagnostics/init.lua | |
parent | 916820f8d3657ab256cf18144055a0ff31e55412 (diff) | |
download | lua-language-server-39e74b505b381cff35898051f96042f1c9109029.zip |
fix #422 search ref across `doc.return`
Diffstat (limited to 'test/diagnostics/init.lua')
-rw-r--r-- | test/diagnostics/init.lua | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/test/diagnostics/init.lua b/test/diagnostics/init.lua index 5502093e..6374b4b7 100644 --- a/test/diagnostics/init.lua +++ b/test/diagnostics/init.lua @@ -1049,3 +1049,16 @@ m.x = nil return m ]] + +TEST [[ +---@class A +---@field a boolean + +---@return A +local function f() end + +local r = f() +r.x = 1 + +return r.x +]] |