summaryrefslogtreecommitdiff
path: root/test-beta/signature/init.lua
diff options
context:
space:
mode:
Diffstat (limited to 'test-beta/signature/init.lua')
-rw-r--r--test-beta/signature/init.lua12
1 files changed, 8 insertions, 4 deletions
diff --git a/test-beta/signature/init.lua b/test-beta/signature/init.lua
index 400fea20..bd7ffe8d 100644
--- a/test-beta/signature/init.lua
+++ b/test-beta/signature/init.lua
@@ -111,10 +111,9 @@ TEST [[
]]
{
label = [[
-function string:sub(i: integer [, j: integer(-1)])
- -> string
+function string:sub(i: integer, j: integer)
]],
- arg = {22, 31},
+ arg = {21, 30},
}
TEST [[
@@ -128,7 +127,12 @@ end
f(1, 'string$')
]]
-(nil)
+{
+ label = [[
+function f(a: any, b: any, c: any)
+]],
+ arg = {20, 25},
+}
TEST [[
pcall(function () $ end)