fix(tvix/eval): force functors before applying them

call_value in the VM expects the callable to be forced when calling
it, which was not the case for functors.

Change-Id: Id55a2fe32a9573be42aef8669e268df519a989cd
Reviewed-on: https://cl.tvl.fyi/c/depot/+/7909
Tested-by: BuildkiteCI
Reviewed-by: sterni <sternenseemann@systemli.org>
This commit is contained in:
Vincent Ambo 2023-01-23 16:35:33 +03:00 committed by tazjin
parent b5d1ae4722
commit d2f1a290a4
3 changed files with 12 additions and 0 deletions

View file

@ -0,0 +1 @@
42

View file

@ -0,0 +1,7 @@
let
__functor = f;
f = self: x: self.out * x;
in {
inherit __functor;
out = 21;
} 2