aboutsummaryrefslogtreecommitdiff
path: root/spec/outputs/import_global.lua
diff options
context:
space:
mode:
Diffstat (limited to 'spec/outputs/import_global.lua')
-rw-r--r--spec/outputs/import_global.lua14
1 files changed, 7 insertions, 7 deletions
diff --git a/spec/outputs/import_global.lua b/spec/outputs/import_global.lua
index 08a90e2..c748c78 100644
--- a/spec/outputs/import_global.lua
+++ b/spec/outputs/import_global.lua
@@ -1,6 +1,6 @@
1do 1do
2 local math = math
3 local print = print 2 local print = print
3 local math = math
4 print("hello") 4 print("hello")
5 math.random(10) 5 math.random(10)
6end 6end
@@ -33,19 +33,19 @@ end
33do 33do
34 local func 34 local func
35 func = function(x, y) 35 func = function(x, y)
36 local type = type
36 local tostring = tostring 37 local tostring = tostring
37 local print = print 38 local print = print
38 local type = type
39 return type(x, tostring(y, print)) 39 return type(x, tostring(y, print))
40 end 40 end
41 func(1, 2) 41 func(1, 2)
42end 42end
43do 43do
44 local print = print 44 local xpcall = xpcall
45 local tostring = tostring
46 local func = func 45 local func = func
47 local world = world 46 local world = world
48 local xpcall = xpcall 47 local tostring = tostring
48 local print = print
49 xpcall(function() 49 xpcall(function()
50 return func("hello " .. tostring(world)) 50 return func("hello " .. tostring(world))
51 end, function(err) 51 end, function(err)
@@ -77,16 +77,16 @@ do
77 end 77 end
78end 78end
79do 79do
80 local lowercase = lowercase
80 local tostring = tostring 81 local tostring = tostring
81 local Uppercase = Uppercase 82 local Uppercase = Uppercase
82 local lowercase = lowercase
83 local foobar = "all " .. tostring(lowercase) 83 local foobar = "all " .. tostring(lowercase)
84 FooBar = "pascal case" 84 FooBar = "pascal case"
85 FOOBAR = "all " .. tostring(Uppercase) 85 FOOBAR = "all " .. tostring(Uppercase)
86end 86end
87do 87do
88 local print = print
89 local setmetatable = setmetatable 88 local setmetatable = setmetatable
89 local print = print
90 do 90 do
91 local _class_0 91 local _class_0
92 local _base_0 = { } 92 local _base_0 = { }