diff options
Diffstat (limited to 'test/diagnostics/common.lua')
-rw-r--r-- | test/diagnostics/common.lua | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/test/diagnostics/common.lua b/test/diagnostics/common.lua index 4edb9703..d640e45a 100644 --- a/test/diagnostics/common.lua +++ b/test/diagnostics/common.lua @@ -1620,3 +1620,14 @@ local n print(n.x) ]] + +TEST [[ +---@diagnostic disable: unused-local, unused-function, undefined-global + +function F() end + +---@param x boolean +function F(x) end + +F(k()) +]] |