diff options
Diffstat (limited to 'spec/outputs/import_global.lua')
| -rw-r--r-- | spec/outputs/import_global.lua | 14 |
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 @@ | |||
| 1 | do | 1 | do |
| 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) |
| 6 | end | 6 | end |
| @@ -33,19 +33,19 @@ end | |||
| 33 | do | 33 | do |
| 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) |
| 42 | end | 42 | end |
| 43 | do | 43 | do |
| 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 |
| 78 | end | 78 | end |
| 79 | do | 79 | do |
| 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) |
| 86 | end | 86 | end |
| 87 | do | 87 | do |
| 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 = { } |
