summaryrefslogtreecommitdiff
path: root/test/hover/init.lua
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2021-11-02 20:54:24 +0800
committer最萌小汐 <sumneko@hotmail.com>2021-11-02 20:54:24 +0800
commitfbb038b568fffe8ddbf6946cd0f7d49a624b496a (patch)
tree89314f1f0261075c7902cbeefeb9f6de60867700 /test/hover/init.lua
parent95437dacc0ecfdf7ee6c4b158fbba6dbc21aecd3 (diff)
downloadlua-language-server-fbb038b568fffe8ddbf6946cd0f7d49a624b496a.zip
async doc.type.function
Diffstat (limited to 'test/hover/init.lua')
-rw-r--r--test/hover/init.lua16
1 files changed, 16 insertions, 0 deletions
diff --git a/test/hover/init.lua b/test/hover/init.lua
index 404adb44..d2a6e084 100644
--- a/test/hover/init.lua
+++ b/test/hover/init.lua
@@ -1732,3 +1732,19 @@ 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()
+]]