summaryrefslogtreecommitdiff
path: root/test/diagnostics
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2022-08-05 17:48:56 +0800
committer最萌小汐 <sumneko@hotmail.com>2022-08-05 17:48:56 +0800
commit2cd35f5a0877bc0abbc6ecc2cc27f2136cfe448f (patch)
tree2ea660a574f6b788c031badc811ee32daf48f48a /test/diagnostics
parent819ca34144213cc2a65faf91915d50d9b42f47f6 (diff)
downloadlua-language-server-2cd35f5a0877bc0abbc6ecc2cc27f2136cfe448f.zip
pass tests
Diffstat (limited to 'test/diagnostics')
-rw-r--r--test/diagnostics/common.lua56
1 files changed, 35 insertions, 21 deletions
diff --git a/test/diagnostics/common.lua b/test/diagnostics/common.lua
index e10ac52c..f7cbbb0d 100644
--- a/test/diagnostics/common.lua
+++ b/test/diagnostics/common.lua
@@ -1359,9 +1359,11 @@ local function f(cb)
cb()
end
-<!f!>(function () ---@async
- return nil
-end)
+return function()
+ <!f>(function () ---@async
+ return nil
+ end)
+end
]]
TEST [[
@@ -1369,9 +1371,11 @@ local function f(cb)
pcall(cb)
end
-<!f!>(function () ---@async
- return nil
-end)
+return function()
+ <!f!>(function () ---@async
+ return nil
+ end)
+end
]]
TEST [[
@@ -1380,9 +1384,11 @@ local function f(c)
return c
end
-f(function () ---@async
- return nil
-end)
+return function ()
+ f(function () ---@async
+ return nil
+ end)
+end
]]
TEST [[
@@ -1391,9 +1397,11 @@ local function f(...)
return ...
end
-f(function () ---@async
- return nil
-end)
+return function ()
+ f(function () ---@async
+ return nil
+ end)
+end
]]
TEST [[
@@ -1402,9 +1410,11 @@ local function f(...)
return ...
end
-f(function () ---@async
- return nil
-end)
+return function ()
+ f(function () ---@async
+ return nil
+ end)
+end
]]
TEST [[
@@ -1412,9 +1422,11 @@ local function f(...)
return ...
end
-f(function () ---@async
- return nil
-end)
+return function ()
+ f(function () ---@async
+ return nil
+ end)
+end
]]
TEST [[
@@ -1422,9 +1434,11 @@ local function f(...)
return ...
end
-f(1, function () ---@async
- return nil
-end)
+return function ()
+ f(function () ---@async
+ return nil
+ end)
+end
]]
TEST [[