summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2022-06-17 15:51:03 +0800
committer最萌小汐 <sumneko@hotmail.com>2022-06-17 15:51:03 +0800
commit05b8cf4e0f92798c08aceb74891de5fb025ae1fb (patch)
treeda88629bee5a0e964ad8fc559df539559fbcccb9 /test
parent6a9e89ad342ec169842ea7a225d0e149155b4c46 (diff)
downloadlua-language-server-05b8cf4e0f92798c08aceb74891de5fb025ae1fb.zip
fix #1223 count returns of `doc.type.function`
Diffstat (limited to 'test')
-rw-r--r--test/diagnostics/common.lua12
1 files changed, 12 insertions, 0 deletions
diff --git a/test/diagnostics/common.lua b/test/diagnostics/common.lua
index 428d8a45..53186198 100644
--- a/test/diagnostics/common.lua
+++ b/test/diagnostics/common.lua
@@ -1601,3 +1601,15 @@ end
f1(f2())
]]
+
+TEST [[
+---@meta
+
+---@type fun():integer
+local f
+
+---@param x integer
+local function foo(x) end
+
+foo(f())
+]]