diff options
author | 最萌小汐 <sumneko@hotmail.com> | 2023-08-11 18:12:04 +0800 |
---|---|---|
committer | 最萌小汐 <sumneko@hotmail.com> | 2023-08-11 18:12:04 +0800 |
commit | f5fcab05b5a30373d1b35689d456090c8299c4c2 (patch) | |
tree | 831465f98d10c1d991be8c468157e4fb7d3d8168 /test | |
parent | 5e5a1b2ebb103625bbbb686ab31abc11a78e9d73 (diff) | |
download | lua-language-server-f5fcab05b5a30373d1b35689d456090c8299c4c2.zip |
support `---@type` and `--[[@as]]` for return
resolve #2144
Diffstat (limited to 'test')
-rw-r--r-- | test/diagnostics/missing-fields.lua | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/test/diagnostics/missing-fields.lua b/test/diagnostics/missing-fields.lua index d8731775..f5fdd35c 100644 --- a/test/diagnostics/missing-fields.lua +++ b/test/diagnostics/missing-fields.lua @@ -197,3 +197,11 @@ local b = { c = 3, } ]] + +TEST [[ +---@class A +---@field x integer + +---@type A +return <!{}!> +]] |