diff options
author | 最萌小汐 <sumneko@hotmail.com> | 2022-06-17 16:02:39 +0800 |
---|---|---|
committer | 最萌小汐 <sumneko@hotmail.com> | 2022-06-17 16:02:39 +0800 |
commit | 1bcadf492c4ccc19d137ffac80b0e9ca181a9ad7 (patch) | |
tree | db21c17b1b6f18d3fb60920a5d0783aaf50e8d0a /test/diagnostics/common.lua | |
parent | cbb4bea9cabfa3073b39e067ea2114946c1d1690 (diff) | |
parent | 6fbe324f7130c94046ce14eee2235b663b47eafc (diff) | |
download | lua-language-server-1bcadf492c4ccc19d137ffac80b0e9ca181a9ad7.zip |
Merge branch 'master' into type-check
Diffstat (limited to 'test/diagnostics/common.lua')
-rw-r--r-- | test/diagnostics/common.lua | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/test/diagnostics/common.lua b/test/diagnostics/common.lua index f80aee0a..39839c2a 100644 --- a/test/diagnostics/common.lua +++ b/test/diagnostics/common.lua @@ -1603,6 +1603,18 @@ f1(f2()) ]] TEST [[ +---@meta + +---@type fun():integer +local f + +---@param x integer +local function foo(x) end + +foo(f()) +]] + +TEST [[ ---@diagnostic disable: unused-local local x = 0 |