summaryrefslogtreecommitdiff
path: root/test/diagnostics/init.lua
diff options
context:
space:
mode:
authorunknown <luoxingyue@cn.net.ntes>2021-09-27 17:44:16 +0800
committerunknown <luoxingyue@cn.net.ntes>2021-09-27 17:44:16 +0800
commit626032b400af1cf79823a9a004ad2d0937599153 (patch)
tree042e9e72c02a9bfb396e4297f3a4d9a5aa375095 /test/diagnostics/init.lua
parentbab5ab685d64258d0f8fe10e505c5d7837307f7b (diff)
downloadlua-language-server-626032b400af1cf79823a9a004ad2d0937599153.zip
add test
Diffstat (limited to 'test/diagnostics/init.lua')
-rw-r--r--test/diagnostics/init.lua11
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