aboutsummaryrefslogtreecommitdiff
path: root/spec/outputs/attrib.lua
diff options
context:
space:
mode:
Diffstat (limited to 'spec/outputs/attrib.lua')
-rw-r--r--spec/outputs/attrib.lua39
1 files changed, 39 insertions, 0 deletions
diff --git a/spec/outputs/attrib.lua b/spec/outputs/attrib.lua
index d9ac3f2..aed549d 100644
--- a/spec/outputs/attrib.lua
+++ b/spec/outputs/attrib.lua
@@ -25,6 +25,45 @@ do
25 end)() 25 end)()
26end 26end
27do 27do
28 local a <const> = (function()
29 if true then
30 return 1
31 end
32 end)()
33 local b <close> = (function()
34 if not false then
35 return ((function()
36 if x then
37 return 1
38 end
39 end)())
40 end
41 end)()
42 local c <const> = (function()
43 if true then
44 return ((function()
45 local _exp_0 = x
46 if "abc" == _exp_0 then
47 return 998
48 end
49 end)())
50 end
51 end)()
52 local d <close> = (function()
53 if (function()
54 if a ~= nil then
55 return a
56 else
57 return b
58 end
59 end)() then
60 return {
61 value = value
62 }
63 end
64 end)()
65end
66do
28 local _ <close> = (function() 67 local _ <close> = (function()
29 local _with_0 = io.open("file.txt") 68 local _with_0 = io.open("file.txt")
30 _with_0:write("Hello") 69 _with_0:write("Hello")