diff options
Diffstat (limited to 'server/test/signature')
-rw-r--r-- | server/test/signature/init.lua | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/server/test/signature/init.lua b/server/test/signature/init.lua index 4110c585..0f16af91 100644 --- a/server/test/signature/init.lua +++ b/server/test/signature/init.lua @@ -49,6 +49,28 @@ x(@) } TEST [[ +local function x(a, b) +end + +x(xxx@) +]] +{ + label = "function x(a: any, b: any)", + arg = 'a: any' +} + +TEST [[ +local function x(a, b) +end + +x(xxx, @) +]] +{ + label = "function x(a: any, b: any)", + arg = 'b: any' +} + +TEST [[ function mt:f(a) end |