diff options
Diffstat (limited to 'test/diagnostics')
-rw-r--r-- | test/diagnostics/common.lua | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/test/diagnostics/common.lua b/test/diagnostics/common.lua index 74cd09f3..f41102ed 100644 --- a/test/diagnostics/common.lua +++ b/test/diagnostics/common.lua @@ -1579,3 +1579,17 @@ end x() ]] + +TEST [[ +---@meta + +---@param x fun() +local function f1(x) +end + +---@return fun() +local function f2() +end + +f1(f2()) +]] |