diff options
-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) +]] |