diff options
author | 最萌小汐 <sumneko@hotmail.com> | 2021-07-01 22:56:21 +0800 |
---|---|---|
committer | 最萌小汐 <sumneko@hotmail.com> | 2021-07-01 22:56:21 +0800 |
commit | 0ba04868b6bed5c213cb0f7e3d732ce59bf930f0 (patch) | |
tree | 88a066b5847debd6193bc1db84a04fb0c04e9a1e /test | |
parent | 9433b5540292a7256aeef4176cca50002f801b40 (diff) | |
download | lua-language-server-0ba04868b6bed5c213cb0f7e3d732ce59bf930f0.zip |
dig a hole
Diffstat (limited to 'test')
-rw-r--r-- | test/type_inference/init.lua | 11 |
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) +]] |