FIX: call function taken from an array.
parent
d30e42b4e8
commit
d9e06eeabd
|
@ -14,4 +14,7 @@
|
|||
($ (produce)
|
||||
[2 4 6])
|
||||
|
||||
(assert= 4 (second (produce)))
|
||||
(assert= 4 (second (produce)))
|
||||
|
||||
($ arr [2 'bim' produce false])
|
||||
(assert= 6 (((arr 2)) 2))
|
|
@ -236,8 +236,10 @@ namespace fk
|
|||
entry && entry->is_global() == false)
|
||||
{
|
||||
if (entry->node()
|
||||
&& entry->node()->child(1)->type() != NODE_ARRAY)
|
||||
&& entry->node()->child(1)->type() != NODE_ARRAY
|
||||
&& entry->node()->type() != NODE_ARRAY)
|
||||
{
|
||||
std::cout << "-> " << entry->node()->string() << std::endl;
|
||||
size_t arity = entry->node()->child(0)->size();
|
||||
if (arity != node->size() - 1)
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue