diff options
author | 最萌小汐 <sumneko@hotmail.com> | 2022-06-22 01:41:16 +0800 |
---|---|---|
committer | 最萌小汐 <sumneko@hotmail.com> | 2022-06-22 01:41:16 +0800 |
commit | 7b3e7f4b0a62b7c9c3b895e89b4fe79bb8f350ba (patch) | |
tree | ee441dc6545127e650c6fcf435c96d33079ac177 /test/diagnostics | |
parent | d1e977ca8a6d72673649282bcd1973b1d279a8a1 (diff) | |
download | lua-language-server-7b3e7f4b0a62b7c9c3b895e89b4fe79bb8f350ba.zip |
fix
Diffstat (limited to 'test/diagnostics')
-rw-r--r-- | test/diagnostics/common.lua | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/test/diagnostics/common.lua b/test/diagnostics/common.lua index 4edb9703..d640e45a 100644 --- a/test/diagnostics/common.lua +++ b/test/diagnostics/common.lua @@ -1620,3 +1620,14 @@ local n print(n.x) ]] + +TEST [[ +---@diagnostic disable: unused-local, unused-function, undefined-global + +function F() end + +---@param x boolean +function F(x) end + +F(k()) +]] |