diff options
Diffstat (limited to 'test/diagnostics/init.lua')
-rw-r--r-- | test/diagnostics/init.lua | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/test/diagnostics/init.lua b/test/diagnostics/init.lua index e3bf9516..1b26c00b 100644 --- a/test/diagnostics/init.lua +++ b/test/diagnostics/init.lua @@ -1198,3 +1198,14 @@ local function fly(bd) end local h fly(<!h!>) ]] + +TEST [[ +---@overload fun(x: number, y: number) +---@param x boolean +---@param y boolean +local function f(x, y) end + +f(true, true) -- OK +f(0, 0) -- OK + +]]
\ No newline at end of file |