diff options
Diffstat (limited to 'spec/outputs/5.1/import_global.lua')
| -rw-r--r-- | spec/outputs/5.1/import_global.lua | 42 |
1 files changed, 41 insertions, 1 deletions
diff --git a/spec/outputs/5.1/import_global.lua b/spec/outputs/5.1/import_global.lua index 3b8334a..b5ac582 100644 --- a/spec/outputs/5.1/import_global.lua +++ b/spec/outputs/5.1/import_global.lua | |||
| @@ -41,8 +41,8 @@ do | |||
| 41 | func(1, 2) | 41 | func(1, 2) |
| 42 | end | 42 | end |
| 43 | do | 43 | do |
| 44 | local xpcall = xpcall | ||
| 45 | local func = func | 44 | local func = func |
| 45 | local xpcall = xpcall | ||
| 46 | local world = world | 46 | local world = world |
| 47 | local tostring = tostring | 47 | local tostring = tostring |
| 48 | local print = print | 48 | local print = print |
| @@ -129,3 +129,43 @@ do | |||
| 129 | return pcall(_anon_func_0, func) | 129 | return pcall(_anon_func_0, func) |
| 130 | end | 130 | end |
| 131 | end | 131 | end |
| 132 | do | ||
| 133 | local func = func | ||
| 134 | local pcall = pcall | ||
| 135 | local print = print | ||
| 136 | local Item = Item | ||
| 137 | local f | ||
| 138 | f = function() | ||
| 139 | local result | ||
| 140 | local _ok_0, _ret_0 = pcall(func) | ||
| 141 | if _ok_0 then | ||
| 142 | result = _ret_0 | ||
| 143 | end | ||
| 144 | if result then | ||
| 145 | return print(result) | ||
| 146 | end | ||
| 147 | end | ||
| 148 | if 1 == Item then | ||
| 149 | print("one") | ||
| 150 | elseif 2 == Item then | ||
| 151 | print("two") | ||
| 152 | end | ||
| 153 | end | ||
| 154 | local b = b | ||
| 155 | local a = a | ||
| 156 | local c = c | ||
| 157 | local print = print | ||
| 158 | local _anon_func_1 = function() | ||
| 159 | local _cond_0 = b() | ||
| 160 | if not (a() < _cond_0) then | ||
| 161 | return false | ||
| 162 | else | ||
| 163 | return _cond_0 < c() | ||
| 164 | end | ||
| 165 | end | ||
| 166 | local f | ||
| 167 | f = function() | ||
| 168 | if _anon_func_1() then | ||
| 169 | return print("OK") | ||
| 170 | end | ||
| 171 | end | ||
