New syntax 'global function'
This commit is contained in:
@@ -489,6 +489,14 @@ if not b then
|
||||
end
|
||||
end]], 5)
|
||||
|
||||
lineerror([[
|
||||
_ENV = 1
|
||||
global function foo ()
|
||||
local a = 10
|
||||
return a
|
||||
end
|
||||
]], 2)
|
||||
|
||||
|
||||
-- bug in 5.4.0
|
||||
lineerror([[
|
||||
|
||||
Reference in New Issue
Block a user