summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorsumneko <sumneko@hotmail.com>2022-03-06 23:35:11 +0800
committersumneko <sumneko@hotmail.com>2022-03-06 23:35:11 +0800
commit4946063175c1a0cda7a11877b8c2b21b0c447c5f (patch)
tree164045515811f64bab018fc498bc5bc84a45de70 /test
parent7d9b22159083dd7b55def45e87bb883060253d30 (diff)
downloadlua-language-server-4946063175c1a0cda7a11877b8c2b21b0c447c5f.zip
update
Diffstat (limited to 'test')
-rw-r--r--test/definition/luadoc.lua8
1 files changed, 4 insertions, 4 deletions
diff --git a/test/definition/luadoc.lua b/test/definition/luadoc.lua
index 1ae82c43..3a796aa3 100644
--- a/test/definition/luadoc.lua
+++ b/test/definition/luadoc.lua
@@ -379,9 +379,9 @@ TEST [[
---@generic T
---@param x T
---@return fun():T
-local function f(<!x!>) end
+local function f(x) end
-local v1 = f(<!{}!>)
+local v1 = f(<!function () end!>)
local <?<!v2!>?> = v1()
]]
@@ -390,7 +390,7 @@ TEST [[
---@type fun(x: T):fun():T
local f
-local v1 = f(<!{}!>)
+local v1 = f(<!function () end!>)
local <?<!v2!>?> = v1()
]]
@@ -400,7 +400,7 @@ TEST [[
local function f(x) end
local v1 = f()
-local <?<!v2!>?> = v1(<!{}!>)
+local <?<!v2!>?> = v1(<!function () end!>)
]]
TEST [[