diff options
Diffstat (limited to 'test')
-rw-r--r-- | test/diagnostics/common.lua | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/test/diagnostics/common.lua b/test/diagnostics/common.lua index 428d8a45..53186198 100644 --- a/test/diagnostics/common.lua +++ b/test/diagnostics/common.lua @@ -1601,3 +1601,15 @@ end f1(f2()) ]] + +TEST [[ +---@meta + +---@type fun():integer +local f + +---@param x integer +local function foo(x) end + +foo(f()) +]] |