diff options
Diffstat (limited to 'test/signature')
-rw-r--r-- | test/signature/init.lua | 45 |
1 files changed, 45 insertions, 0 deletions
diff --git a/test/signature/init.lua b/test/signature/init.lua index 931a8d73..40fb33dc 100644 --- a/test/signature/init.lua +++ b/test/signature/init.lua @@ -242,3 +242,48 @@ function f(x: table<number, string>, y: any, z: any) ]], arg = {12, 35}, } + + +TEST [[ +local function x(a, b) +end + +x( aaaa $, 2) +]] +{ + label = "function x(a: any, b: any)", + arg = {12, 17}, +} + +TEST [[ +local function x(a, b) +end + +x($ aaaa , 2) +]] +{ + label = "function x(a: any, b: any)", + arg = {12, 17}, +} + +TEST [[ +local function x(a, b) +end + +x(aaaa ,$ 2) +]] +{ + label = "function x(a: any, b: any)", + arg = {20, 25}, +} + +TEST [[ +local function x(a, b) +end + +x(aaaa , 2 $) +]] +{ + label = "function x(a: any, b: any)", + arg = {20, 25}, +} |