diff options
Diffstat (limited to 'server/test/implementation/function.lua')
-rw-r--r-- | server/test/implementation/function.lua | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/server/test/implementation/function.lua b/server/test/implementation/function.lua new file mode 100644 index 00000000..90b75da8 --- /dev/null +++ b/server/test/implementation/function.lua @@ -0,0 +1,24 @@ + +TEST [[ +function <!x!> () end +<?x?> = 1 +]] + +TEST [[ +local function <!x!> () end +<?x?> = 1 +]] + +TEST [[ +local x +local function <!x!> () + <?x?> = 1 +end +]] + +TEST [[ +local x +function <!x!>() +end +<?x?> = 1 +]] |