summaryrefslogtreecommitdiff
path: root/test/diagnostics/init.lua
diff options
context:
space:
mode:
Diffstat (limited to 'test/diagnostics/init.lua')
-rw-r--r--test/diagnostics/init.lua10
1 files changed, 10 insertions, 0 deletions
diff --git a/test/diagnostics/init.lua b/test/diagnostics/init.lua
index cfe29d04..58414b60 100644
--- a/test/diagnostics/init.lua
+++ b/test/diagnostics/init.lua
@@ -1461,6 +1461,16 @@ end)
]]
TEST [[
+local function f(...)
+ return ...
+end
+
+f(1, function () ---@async
+ return nil
+end)
+]]
+
+TEST [[
---@nodiscard
local function f()
return 1