summaryrefslogtreecommitdiff
path: root/test/references/all.lua
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2021-06-11 17:07:31 +0800
committer最萌小汐 <sumneko@hotmail.com>2021-06-11 17:07:31 +0800
commit62dee501181ebfa374c827df5a15ea9461f38b73 (patch)
tree0e35d3e05bff26818c5bdc6bcba900163be7d516 /test/references/all.lua
parentf10dd2af22efeb5330f2da23d615ff7bc213b1eb (diff)
downloadlua-language-server-62dee501181ebfa374c827df5a15ea9461f38b73.zip
update
Diffstat (limited to 'test/references/all.lua')
-rw-r--r--test/references/all.lua18
1 files changed, 18 insertions, 0 deletions
diff --git a/test/references/all.lua b/test/references/all.lua
index a9442ae1..f8fe3d6e 100644
--- a/test/references/all.lua
+++ b/test/references/all.lua
@@ -211,3 +211,21 @@ function <!A!>:f() end
local <!b!> = <!A!>:f()
]]
+
+TEST [[
+local function f()
+ return <~<!function~> ()
+ end!>
+end
+
+local <!f2!> = f()
+]]
+
+TEST [[
+local function f()
+ return nil, <~<!function~> ()
+ end!>
+end
+
+local _, <!f2!> = f()
+]]