diff options
author | 最萌小汐 <sumneko@hotmail.com> | 2022-06-15 00:05:52 +0800 |
---|---|---|
committer | 最萌小汐 <sumneko@hotmail.com> | 2022-06-15 00:05:52 +0800 |
commit | 54a488b7d5899d412ad37083dca1ef3728a7cdba (patch) | |
tree | 8aa8dbdb2225a6adf449ee4b88309c88b2dafb13 /test/diagnostics | |
parent | 3e486462ee3dc14bc996d553c8e456e603b762bc (diff) | |
download | lua-language-server-54a488b7d5899d412ad37083dca1ef3728a7cdba.zip |
fix #1204 `missing-parameter` incorrect
should count returns by `call.node` instead of `call`
Diffstat (limited to 'test/diagnostics')
-rw-r--r-- | test/diagnostics/common.lua | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/test/diagnostics/common.lua b/test/diagnostics/common.lua index 74cd09f3..f41102ed 100644 --- a/test/diagnostics/common.lua +++ b/test/diagnostics/common.lua @@ -1579,3 +1579,17 @@ end x() ]] + +TEST [[ +---@meta + +---@param x fun() +local function f1(x) +end + +---@return fun() +local function f2() +end + +f1(f2()) +]] |