summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
author最萌小汐 <sumneko@hotmail.com>2022-09-06 15:56:25 +0800
committer最萌小汐 <sumneko@hotmail.com>2022-09-06 15:56:25 +0800
commitf7f0929f8b7c8997a6e390f8e738b9634efc5f29 (patch)
tree28d45e735464280a6992da8177d1d0260c5eedb9 /test
parent436e23fa9f562d9a10bee55edcc415ae3a7080c2 (diff)
downloadlua-language-server-f7f0929f8b7c8997a6e390f8e738b9634efc5f29.zip
fix #1499
Diffstat (limited to 'test')
-rw-r--r--test/signature/init.lua16
1 files changed, 16 insertions, 0 deletions
diff --git a/test/signature/init.lua b/test/signature/init.lua
index 9c05f7c5..18a0fc30 100644
--- a/test/signature/init.lua
+++ b/test/signature/init.lua
@@ -300,3 +300,19 @@ X(1, <?2?>)
{
'function X(a: number, <!b: number!>)',
}
+
+TEST [[
+---@alias A { x:number, y:number, z:number }
+
+---comment
+---@param a A
+---@param b string
+function X(a, b)
+
+end
+
+X({}, <??>)
+]]
+{
+'function X(a: { x: number, y: number, z: number }, <!b: string!>)'
+}