diff options
Diffstat (limited to 'spec/outputs')
| -rw-r--r-- | spec/outputs/nil_coalesing.lua | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/spec/outputs/nil_coalesing.lua b/spec/outputs/nil_coalesing.lua index b434671..e1547df 100644 --- a/spec/outputs/nil_coalesing.lua +++ b/spec/outputs/nil_coalesing.lua | |||
| @@ -153,4 +153,29 @@ do | |||
| 153 | end | 153 | end |
| 154 | end | 154 | end |
| 155 | end | 155 | end |
| 156 | do | ||
| 157 | local _obj_0 = a.b | ||
| 158 | if _obj_0.c == nil then | ||
| 159 | _obj_0.c = 1 | ||
| 160 | end | ||
| 161 | local a | ||
| 162 | do | ||
| 163 | local _exp_0 = b.x | ||
| 164 | if _exp_0 ~= nil then | ||
| 165 | a = _exp_0 | ||
| 166 | else | ||
| 167 | do | ||
| 168 | local _exp_1 = c.x | ||
| 169 | if _exp_1 ~= nil then | ||
| 170 | a = _exp_1 | ||
| 171 | else | ||
| 172 | a = d.x | ||
| 173 | end | ||
| 174 | end | ||
| 175 | end | ||
| 176 | end | ||
| 177 | if a.c == nil then | ||
| 178 | a.c = 1 | ||
| 179 | end | ||
| 180 | end | ||
| 156 | return nil | 181 | return nil |
