diff options
Diffstat (limited to 'server/test/diagnostics/init.lua')
-rw-r--r-- | server/test/diagnostics/init.lua | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/server/test/diagnostics/init.lua b/server/test/diagnostics/init.lua index 2ef052bf..cb842f71 100644 --- a/server/test/diagnostics/init.lua +++ b/server/test/diagnostics/init.lua @@ -149,7 +149,6 @@ TEST [[ (''):sub(1, 2) ]] - TEST [=[ return [[ @@ -177,6 +176,12 @@ f() ]] TEST [[ +local function f(<!...!>) +end +f() +]] + +TEST [[ local function f(var) print(var) end @@ -218,7 +223,7 @@ mt:f(1, 2, <!3!>, <!4!>) TEST [[ local function f(a, b, ...) - return a, b + return a, b, ... end f(1, 2, 3, 4) ]] |