summaryrefslogtreecommitdiff
path: root/server/test
diff options
context:
space:
mode:
Diffstat (limited to 'server/test')
-rw-r--r--server/test/hover/init.lua10
1 files changed, 10 insertions, 0 deletions
diff --git a/server/test/hover/init.lua b/server/test/hover/init.lua
index f1a18c06..108bc978 100644
--- a/server/test/hover/init.lua
+++ b/server/test/hover/init.lua
@@ -812,3 +812,13 @@ local <toclose> <const> <?x?> = 1
[[
local <toclose> <const> x: number = 1
]]
+
+TEST [[
+---@param x number {optional = 'after'}
+---@param y boolean {optional = 'self'}
+---@param z string
+function <?f?>(x, y, z) end
+]]
+[=[
+function f([x: number [, y: boolean], z: string])
+]=]