diff options
Diffstat (limited to 'spec/outputs')
| -rw-r--r-- | spec/outputs/switch.lua | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/spec/outputs/switch.lua b/spec/outputs/switch.lua index 1ace1e3..bbdf794 100644 --- a/spec/outputs/switch.lua +++ b/spec/outputs/switch.lua | |||
| @@ -398,4 +398,39 @@ do | |||
| 398 | end | 398 | end |
| 399 | end | 399 | end |
| 400 | end | 400 | end |
| 401 | do | ||
| 402 | do | ||
| 403 | local _exp_0 = tb | ||
| 404 | local _type_0 = type(_exp_0) | ||
| 405 | local _tab_0 = "table" == _type_0 or "userdata" == _type_0 | ||
| 406 | local _match_0 = false | ||
| 407 | if _tab_0 then | ||
| 408 | local item | ||
| 409 | do | ||
| 410 | local _obj_0 = _exp_0[1] | ||
| 411 | local _type_1 = type(_obj_0) | ||
| 412 | if "table" == _type_1 or "userdata" == _type_1 then | ||
| 413 | item = _obj_0[1] | ||
| 414 | end | ||
| 415 | end | ||
| 416 | if item ~= nil then | ||
| 417 | _match_0 = true | ||
| 418 | print(item) | ||
| 419 | end | ||
| 420 | end | ||
| 421 | if not _match_0 then | ||
| 422 | if _tab_0 then | ||
| 423 | local a = _exp_0[1] | ||
| 424 | local b = _exp_0[2] | ||
| 425 | if a == nil then | ||
| 426 | a = 1 | ||
| 427 | end | ||
| 428 | if b == nil then | ||
| 429 | b = "abc" | ||
| 430 | end | ||
| 431 | print(a, b) | ||
| 432 | end | ||
| 433 | end | ||
| 434 | end | ||
| 435 | end | ||
| 401 | return nil | 436 | return nil |
