aboutsummaryrefslogtreecommitdiff
path: root/spec/outputs/pipe.lua
diff options
context:
space:
mode:
Diffstat (limited to 'spec/outputs/pipe.lua')
-rw-r--r--spec/outputs/pipe.lua50
1 files changed, 32 insertions, 18 deletions
diff --git a/spec/outputs/pipe.lua b/spec/outputs/pipe.lua
index bf517ae..345f8b0 100644
--- a/spec/outputs/pipe.lua
+++ b/spec/outputs/pipe.lua
@@ -32,31 +32,45 @@ do
32end 32end
33do 33do
34 local _with_0 34 local _with_0
35 if create ~= nil then 35 do
36 _with_0 = create(b, "new") 36 local _obj_0 = create
37 if _obj_0 ~= nil then
38 _with_0 = _obj_0(b, "new")
39 end
37 end 40 end
38 _with_0.value = 123 41 _with_0.value = 123
39 print(_with_0:work()) 42 print(_with_0:work())
40end 43end
41if f ~= nil then 44do
42 f(123) 45 local _obj_0 = f
46 if _obj_0 ~= nil then
47 _obj_0(123)
48 end
43end 49end
44if f2 ~= nil then 50do
45 f2((function() 51 local _obj_0 = f2
46 if f1 ~= nil then 52 if _obj_0 ~= nil then
47 return f1("abc") 53 _obj_0((function()
48 end 54 local _obj_1 = f1
49 return nil 55 if _obj_1 ~= nil then
50 end)()) 56 return _obj_1("abc")
57 end
58 return nil
59 end)())
60 end
51end 61end
52local c 62local c
53if f2 ~= nil then 63do
54 c = f2((function() 64 local _obj_0 = f2
55 if f1 ~= nil then 65 if _obj_0 ~= nil then
56 return f1("abc") 66 c = _obj_0((function()
57 end 67 local _obj_1 = f1
58 return nil 68 if _obj_1 ~= nil then
59 end)()) 69 return _obj_1("abc")
70 end
71 return nil
72 end)())
73 end
60end 74end
61local f 75local f
62f = function() 76f = function()