Collective declaration for globals ('global *')
This commit is contained in:
@@ -6,6 +6,8 @@
|
||||
|
||||
print('testing pattern matching')
|
||||
|
||||
global * <const>
|
||||
|
||||
local function checkerror (msg, f, ...)
|
||||
local s, err = pcall(f, ...)
|
||||
assert(not s and string.find(err, msg))
|
||||
|
||||
Reference in New Issue
Block a user