diff options
Diffstat (limited to 'spec/outputs/pipe_chain_combo.lua')
| -rw-r--r-- | spec/outputs/pipe_chain_combo.lua | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/spec/outputs/pipe_chain_combo.lua b/spec/outputs/pipe_chain_combo.lua new file mode 100644 index 0000000..6cf40a9 --- /dev/null +++ b/spec/outputs/pipe_chain_combo.lua | |||
| @@ -0,0 +1,9 @@ | |||
| 1 | local f1 | ||
| 2 | f1 = function(x) | ||
| 3 | return x + 2 | ||
| 4 | end | ||
| 5 | local f2 | ||
| 6 | f2 = function(x) | ||
| 7 | return x * 3 | ||
| 8 | end | ||
| 9 | local value = print(tostring(f2(f1(3)))) | ||
