summaryrefslogtreecommitdiff
path: root/test/references
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
parentf10dd2af22efeb5330f2da23d615ff7bc213b1eb (diff)
downloadlua-language-server-62dee501181ebfa374c827df5a15ea9461f38b73.zip
update
Diffstat (limited to 'test/references')
-rw-r--r--test/references/all.lua18
-rw-r--r--test/references/init.lua18
2 files changed, 18 insertions, 18 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()
+]]
diff --git a/test/references/init.lua b/test/references/init.lua
index e90cb2a8..237e41da 100644
--- a/test/references/init.lua
+++ b/test/references/init.lua
@@ -138,24 +138,6 @@ end
]]
TEST [[
-local function f()
- return <~<!function~> ()
- end!>
-end
-
-local <!f2!> = f()
-]]
-
-TEST [[
-local function f()
- return nil, <~<!function~> ()
- end!>
-end
-
-local _, <!f2!> = f()
-]]
-
-TEST [[
local <?x?>
local function f()
return <!x!>