aboutsummaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2010-12-09 22:43:56 +0000
committerDavid Robillard <d@drobilla.net>2010-12-09 22:43:56 +0000
commit7f30acc2d088d3d57ad2c8922eb1927c24fc72a7 (patch)
treeda1a32eb5c69ff1cf6f8113bbb5ef87d3dbbd8b4 /test
parentb078303aa8fa31728a8351587a0796e76301d575 (diff)
downloadresp-7f30acc2d088d3d57ad2c8922eb1927c24fc72a7.tar.gz
resp-7f30acc2d088d3d57ad2c8922eb1927c24fc72a7.tar.bz2
resp-7f30acc2d088d3d57ad2c8922eb1927c24fc72a7.zip
Document the free variable implementation (mostly in lift_symbol) better.
git-svn-id: http://svn.drobilla.net/resp/resp@335 ad02d1e2-f140-0410-9f75-f8b11f17cedd
Diffstat (limited to 'test')
-rw-r--r--test/closure.resp2
1 files changed, 2 insertions, 0 deletions
diff --git a/test/closure.resp b/test/closure.resp
index fb5a41d..75e632b 100644
--- a/test/closure.resp
+++ b/test/closure.resp
@@ -1,3 +1,5 @@
+(def (test a b c) (fn (x) (* (+ x 0) a)))
+
(def (multiplier factor) (fn (x) (* (+ x 0) factor)))
(def doubler (multiplier 2))