summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2021-07-01 22:56:21 +0800
committer最萌小汐 <sumneko@hotmail.com>2021-07-01 22:56:21 +0800
commit0ba04868b6bed5c213cb0f7e3d732ce59bf930f0 (patch)
tree88a066b5847debd6193bc1db84a04fb0c04e9a1e /test
parent9433b5540292a7256aeef4176cca50002f801b40 (diff)
downloadlua-language-server-0ba04868b6bed5c213cb0f7e3d732ce59bf930f0.zip
dig a hole
Diffstat (limited to 'test')
-rw-r--r--test/type_inference/init.lua11
1 files changed, 11 insertions, 0 deletions
diff --git a/test/type_inference/init.lua b/test/type_inference/init.lua
index 6aefd1f4..3ec1cf19 100644
--- a/test/type_inference/init.lua
+++ b/test/type_inference/init.lua
@@ -827,3 +827,14 @@ TEST 'fun():number, boolean' [[
---@type fun():number, boolean
local <?t?>
]]
+
+TEST 'Class' [[
+---@class Class
+
+---@param callback fun(value: Class)
+function work(callback)
+end
+
+work(function (<?value?>)
+end)
+]]