diff options
Diffstat (limited to 'test')
-rw-r--r-- | test/signature/init.lua | 16 |
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!>)' +} |