summaryrefslogtreecommitdiff
path: root/test/hover/init.lua
diff options
context:
space:
mode:
Diffstat (limited to 'test/hover/init.lua')
-rw-r--r--test/hover/init.lua25
1 files changed, 25 insertions, 0 deletions
diff --git a/test/hover/init.lua b/test/hover/init.lua
index 36fbd6d2..d2a6e084 100644
--- a/test/hover/init.lua
+++ b/test/hover/init.lua
@@ -19,6 +19,7 @@ local accept = {
['function'] = true,
}
+---@diagnostic disable: await-in-sync
function TEST(script)
return function (expect)
files.removeAll()
@@ -1723,3 +1724,27 @@ local function <?f?>() end
function f()
-> nil
]]
+
+TEST [[
+---@async
+local function <?f?>() end
+]]
+[[
+async function f()
+]]
+
+TEST [[
+---@type function
+local <?f?>
+]]
+[[
+local f: function
+]]
+
+TEST [[
+---@type async fun()
+local <?f?>
+]]
+[[
+local f: async fun()
+]]