summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorKaz Kylheku <kaz@kylheku.com>2019-08-07 22:57:49 -0700
committerKaz Kylheku <kaz@kylheku.com>2019-08-07 22:57:49 -0700
commitb82650d684d3aa9ace96b90d832f42d269723a36 (patch)
tree9b62fba464e69ba770ae0919fff1b93141800f89 /tests
parent7840f507a485c78607605493e575ff1546245b87 (diff)
downloadtxr-b82650d684d3aa9ace96b90d832f42d269723a36.tar.gz
txr-b82650d684d3aa9ace96b90d832f42d269723a36.tar.bz2
txr-b82650d684d3aa9ace96b90d832f42d269723a36.zip
expander: bugfix: spurious lambda form warning.
* eval.c (do_expand): In the expansion logic for function calls, after we have done the dot-to-apply transform, we must thereafter consistently refer to the new front element of the form insym, and not the original element sym. The first element may be a lambda form moved into the second position by dot-to-apply. We then falsely warn about that being in the operator position. Test case: ((lambda ()) . 3).
Diffstat (limited to 'tests')
0 files changed, 0 insertions, 0 deletions